Skip to content

Commit

Permalink
Fix boolean clause for empty fragment list serialization
Browse files Browse the repository at this point in the history
Co-authored-by: Shaun M Reed <[email protected]>
  • Loading branch information
ypatia and shaunrd0 authored Jun 21, 2024
1 parent 6a2f661 commit 6b273c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiledb/sm/serialization/consolidation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void array_consolidation_request_to_capnp(
// Validate input arguments to be sure that what we are serializing make sense
auto mode = Consolidator::mode_from_config(config);
if (mode != ConsolidationMode::FRAGMENT &&
(fragment_uris != nullptr || !fragment_uris->empty())) {
(fragment_uris != nullptr && !fragment_uris->empty())) {
throw ConsolidationSerializationException(
"[array_consolidation_request_to_capnp] Error serializing "
"consolidation request. A non-empty fragment list should only be "
Expand Down

0 comments on commit 6b273c4

Please sign in to comment.