diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-09-22 12:52:11 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-09-22 12:52:11 +0000 |
commit | 2b7f9bf28844837b7a7dfd21857806406578ec0e (patch) | |
tree | 76e761035e31f5c7f7d239161a2ac90aebf4150a /searchlib/src | |
parent | e7f7be2e596453f16d80896eb11f68895d275eb1 (diff) |
Check for no data, as there might be callbacks that have been moved over.
Diffstat (limited to 'searchlib/src')
-rw-r--r-- | searchlib/src/vespa/searchlib/transactionlog/domain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/transactionlog/domain.cpp b/searchlib/src/vespa/searchlib/transactionlog/domain.cpp index fdee9dc1a24..bd7feec0598 100644 --- a/searchlib/src/vespa/searchlib/transactionlog/domain.cpp +++ b/searchlib/src/vespa/searchlib/transactionlog/domain.cpp @@ -376,9 +376,9 @@ Domain::commitChunk(std::unique_ptr<CommitChunk> chunk, const vespalib::MonitorG void Domain::doCommit(std::unique_ptr<CommitChunk> chunk) { - if (chunk->empty()) return; - const Packet & packet = chunk->getPacket(); + if (packet.empty()) return; + vespalib::nbostream_longlivedbuf is(packet.getHandle().data(), packet.getHandle().size()); Packet::Entry entry; entry.deserialize(is); |