diff --git a/storage/ndb/src/kernel/blocks/lgman.cpp b/storage/ndb/src/kernel/blocks/lgman.cpp
index 481530cf3e81c18c9ce80a8078c7150ab64fa20d..82fed94f62e0cb05f639705abd2d47153777acb9 100644
--- a/storage/ndb/src/kernel/blocks/lgman.cpp
+++ b/storage/ndb/src/kernel/blocks/lgman.cpp
@@ -1961,11 +1961,6 @@ Lgman::alloc_log_space(Uint32 ref, Uint32 words)
   if(m_logfile_group_hash.find(ptr, key) && 
      ptr.p->m_free_file_words >= (words + (4 * File_formats::UNDO_PAGE_WORDS)))
   {
-    Uint32 group_pages = 
-      ((ptr.p->m_free_file_words + File_formats::UNDO_PAGE_WORDS - 1)/ File_formats::UNDO_PAGE_WORDS);
-    if(group_pages > compute_free_file_pages(ptr))
-      return 1501; 
-
     ptr.p->m_free_file_words -= words;
     validate_logfile_group(ptr, "alloc_log_space");
     return 0;