summaryrefslogtreecommitdiffstats
path: root/src/common/buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/buffer.cc')
-rw-r--r--src/common/buffer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/buffer.cc b/src/common/buffer.cc
index ee2bdc1e9e2..d80b79841e5 100644
--- a/src/common/buffer.cc
+++ b/src/common/buffer.cc
@@ -1382,6 +1382,7 @@ static ceph::spinlock debug_lock;
_carriage = new_back;
return { new_back->c_str(), &new_back->_len, &_len };
} else {
+ ceph_assert(!_buffers.empty());
if (unlikely(_carriage != &_buffers.back())) {
auto bptr = ptr_node::create(*_carriage, _carriage->length(), 0);
_carriage = bptr.get();