summaryrefslogtreecommitdiff
path: root/s
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-03-01 23:58:58 -0500
committerEliot Horowitz <eliot@10gen.com>2011-03-01 23:59:43 -0500
commitdc65bd51ae83bc90711a9ef83ac9bb606dc43d22 (patch)
treeb72bed2b5e1cb4b726b02a3081ab0a0fdc563985 /s
parente5839f0a76b8ecd2687144db2e6d6a4ebf5acc93 (diff)
downloadmongo-dc65bd51ae83bc90711a9ef83ac9bb606dc43d22.tar.gz
make sure that index creation is logged on secondaries during migrate SERVER-2665
Diffstat (limited to 's')
-rw-r--r--s/d_migrate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp
index 8da4310042d..5f1ae17a911 100644
--- a/s/d_migrate.cpp
+++ b/s/d_migrate.cpp
@@ -1162,7 +1162,7 @@ namespace mongo {
string system_indexes = cc().database()->name + ".system.indexes";
for ( unsigned i=0; i<all.size(); i++ ) {
BSONObj idx = all[i];
- theDataFileMgr.insert( system_indexes.c_str() , idx.objdata() , idx.objsize() );
+ theDataFileMgr.insertAndLog( system_indexes.c_str() , idx );
}
timing.done(1);