diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2012-12-13 11:54:33 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2012-12-13 11:54:33 +1100 |
commit | 13c3637d8ef43eaf759b6d5e338cc24c22097882 (patch) | |
tree | b66b365ab54c63cb1151c73d925c426b25f84505 | |
parent | 0326f1cca0c86121ff21980a892308d8de15e86b (diff) | |
download | mongo-13c3637d8ef43eaf759b6d5e338cc24c22097882.tar.gz |
Add a comment explaining why we are ignoring an error return.
-rw-r--r-- | src/lsm/lsm_cursor.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lsm/lsm_cursor.c b/src/lsm/lsm_cursor.c index 8ec4356794b..fba7d479868 100644 --- a/src/lsm/lsm_cursor.c +++ b/src/lsm/lsm_cursor.c @@ -212,7 +212,11 @@ __clsm_open_cursors( clsm->primary_chunk = chunk; (void)WT_ATOMIC_ADD(clsm->primary_chunk->ncursor, 1); - /* Peek into the btree layer to track the in-memory size. */ + /* + * Peek into the btree layer to track the in-memory size. + * Ignore error returns since it is OK for the btree to be + * empty in this code path (and that is an error condition). + */ if (lsm_tree->memsizep == NULL) (void)__wt_btree_get_memsize( session, session->btree, &lsm_tree->memsizep); |