diff options
author | Aaron <aaron@10gen.com> | 2009-05-14 12:00:52 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-05-14 12:00:52 -0400 |
commit | 7f42e31739c50aa2c3e51d5ebd01d71c597dcdb0 (patch) | |
tree | c9b2b1b840785e6f922f73006c9fff745ff8f4ee /db/clientcursor.h | |
parent | a23f4a3138dce2f71ca3f3f4529b64366e1cfce5 (diff) | |
download | mongo-7f42e31739c50aa2c3e51d5ebd01d71c597dcdb0.tar.gz |
guard _ids before upgrading storage from cursor MINOR
Diffstat (limited to 'db/clientcursor.h')
-rw-r--r-- | db/clientcursor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/clientcursor.h b/db/clientcursor.h index 99eda2c0e6b..e2b31bfa250 100644 --- a/db/clientcursor.h +++ b/db/clientcursor.h @@ -150,6 +150,8 @@ namespace mongo { void cleanupByLocation(DiskLoc loc); void mayUpgradeStorage() { + if ( !ids_.get() ) + return; stringstream ss; ss << ns << "." << cursorid; ids_->mayUpgradeStorage( ss.str() ); |