summaryrefslogtreecommitdiff
path: root/bench/wtperf/wtperf_truncate.c
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2016-08-12 02:49:03 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2016-08-12 16:49:03 +1000
commitf69bbc18148c6fced50b01e04d552f0053fce20c (patch)
treea6d4f7250d32505ea9e0c94ceca4a98ce7416cb4 /bench/wtperf/wtperf_truncate.c
parenta044bf81ace95df8fd9a5fd85fcf2c15f898cbd8 (diff)
downloadmongo-f69bbc18148c6fced50b01e04d552f0053fce20c.tar.gz
WT-2820 add gcc warn_unused_result attribute (#2938)
* Add the gcc "cold" attribute to the verbose, message, and assorted error functions (informs the compiler that the function is unlikely to be executed). * Add the WT_IGNORE_RET() macro that ignores return values in the handfull of places we want to ignore return values. * Replace calls to fprintf() in the utility with calls to util_err(), replace local variable names in error messages with class names.
Diffstat (limited to 'bench/wtperf/wtperf_truncate.c')
-rw-r--r--bench/wtperf/wtperf_truncate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/wtperf/wtperf_truncate.c b/bench/wtperf/wtperf_truncate.c
index 672b07301e3..e6ebc83c681 100644
--- a/bench/wtperf/wtperf_truncate.c
+++ b/bench/wtperf/wtperf_truncate.c
@@ -192,7 +192,7 @@ run_truncate(CONFIG *cfg, CONFIG_THREAD *thread,
*/
if (cfg->truncate_single_ops) {
while ((ret = cursor->next(cursor)) == 0) {
- cursor->get_key(cursor, &next_key);
+ testutil_check(cursor->get_key(cursor, &next_key));
if (strcmp(next_key, truncate_item->key) == 0)
break;
if ((ret = cursor->remove(cursor)) != 0) {