summaryrefslogtreecommitdiff
path: root/db/clientcursor.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-14 12:00:52 -0400
committerAaron <aaron@10gen.com>2009-05-14 12:00:52 -0400
commit7f42e31739c50aa2c3e51d5ebd01d71c597dcdb0 (patch)
treec9b2b1b840785e6f922f73006c9fff745ff8f4ee /db/clientcursor.h
parenta23f4a3138dce2f71ca3f3f4529b64366e1cfce5 (diff)
downloadmongo-7f42e31739c50aa2c3e51d5ebd01d71c597dcdb0.tar.gz
guard _ids before upgrading storage from cursor MINOR
Diffstat (limited to 'db/clientcursor.h')
-rw-r--r--db/clientcursor.h2
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() );