Skip to content

Commit

Permalink
Merge pull request #3807 from chu11/issue1804_zhash
Browse files Browse the repository at this point in the history
libkvs: compact only if ops len > 1
  • Loading branch information
mergify[bot] authored Aug 1, 2021
2 parents a3f5f71 + 0f8ddea commit 53f37bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/libkvs/kvs_txn_compact.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ int txn_compact (flux_kvs_txn_t *txn)
}

len = json_array_size (txn->ops);
if (!len)
if (len < 2)
return 0;

if (!(ops_new = json_array ())) {
Expand Down

0 comments on commit 53f37bb

Please sign in to comment.