diff options
Diffstat (limited to 'reftable/writer.c')
-rw-r--r-- | reftable/writer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/reftable/writer.c b/reftable/writer.c index 02b74d25c0..944c2329ab 100644 --- a/reftable/writer.c +++ b/reftable/writer.c @@ -241,6 +241,9 @@ static int writer_add_record(struct reftable_writer *w, writer_reinit_block_writer(w, reftable_record_type(rec)); err = block_writer_add(w->block_writer, rec); if (err < 0) { + /* we are writing into memory, so an error can only mean it + * doesn't fit. */ + err = REFTABLE_ENTRY_TOO_BIG_ERROR; goto done; } |