summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/pdfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp
index 20a74237468..313e1e8fa80 100644
--- a/db/pdfile.cpp
+++ b/db/pdfile.cpp
@@ -1287,7 +1287,7 @@ namespace mongo {
prep(ns.c_str(), d);
assert( idxNo == d->nIndexes );
try {
- idx.head = BtreeBucket::addBucket(idx);
+ idx.head.writing() = BtreeBucket::addBucket(idx);
n = addExistingToIndex(ns.c_str(), d, idx, idxNo);
}
catch(...) {