summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-04-15 14:13:20 -0400
committerKeith Bostic <keith@wiredtiger.com>2016-04-15 14:13:20 -0400
commitde811eef9b9e96ac927bb54e0f30d0780e1b5d95 (patch)
tree7af87f0267bd068d81125e78f626dd4e57eec8c5 /src
parent362d7c8acf648b1b02165d52c8cc1a2ef82fe074 (diff)
downloadmongo-de811eef9b9e96ac927bb54e0f30d0780e1b5d95.tar.gz
WT-2223: Add stress testing for in-memory
Change WT_CACHE_FULL to not set a transaction error, allowing transactions to continue, rather than forcing a rollback.
Diffstat (limited to 'src')
-rw-r--r--src/include/api.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/api.h b/src/include/api.h
index c6a5af40698..05949976fac 100644
--- a/src/include/api.h
+++ b/src/include/api.h
@@ -35,8 +35,9 @@
(s)->name = __oldname; \
if (F_ISSET(&(s)->txn, WT_TXN_RUNNING) && \
(ret) != 0 && \
- (ret) != WT_NOTFOUND && \
- (ret) != WT_DUPLICATE_KEY) \
+ (ret) != WT_CACHE_FULL && \
+ (ret) != WT_DUPLICATE_KEY && \
+ (ret) != WT_NOTFOUND) \
F_SET(&(s)->txn, WT_TXN_ERROR); \
} \
} while (0)