Skip to content

Commit 2923564

Browse files
committed
record count error
1 parent c6cdd5b commit 2923564

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cluster/multinode/volume.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ struct VolumedFile : public std::vector<Volume> {
110110
records_ = 0;
111111
}
112112
OId sparse_records() const {
113-
if (records_ == 0)
113+
if (records_ == std::numeric_limits<OId>::max())
114114
throw std::runtime_error("Record count not set");
115115
return records_;
116116
}

0 commit comments

Comments
 (0)