diff --git a/src/commands/CmdMerge.cpp b/src/commands/CmdMerge.cpp index b530ae669..41b2d97aa 100644 --- a/src/commands/CmdMerge.cpp +++ b/src/commands/CmdMerge.cpp @@ -49,9 +49,9 @@ CmdMerge::CmdMerge () //////////////////////////////////////////////////////////////////////////////// int CmdMerge::execute (std::string& output) { - // invoke gc before merging in order to update data files - context.tdb.gc (); + // invoke gc and commit before merging in order to update data files context.tdb2.gc (); + context.tdb2.commit (); std::vector words = context.a3.extract_words (); std::string file;