repack the ldb after re-indexing
[kai/samba.git] / source4 / lib / ldb / ldb_tdb / ldb_index.c
index 65711d9f4b90cb68568a0e85e1a4e367cccff743..eedbda41706c656bd678dd9d6fe9be5d4e168a45 100644 (file)
@@ -1250,5 +1250,9 @@ int ltdb_reindex(struct ldb_module *module)
                return LDB_ERR_OPERATIONS_ERROR;
        }
 
                return LDB_ERR_OPERATIONS_ERROR;
        }
 
+       if (tdb_repack(ltdb->tdb) != 0) {
+               return LDB_ERR_OPERATIONS_ERROR;                
+       }
+
        return LDB_SUCCESS;
 }
        return LDB_SUCCESS;
 }