Actually store the block number in the thread-local 79/281679/1
authorMateusz Majewski <m.majewski2@samsung.com>
Tue, 20 Sep 2022 12:39:40 +0000 (14:39 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Tue, 20 Sep 2022 12:39:40 +0000 (14:39 +0200)
Change-Id: Ia5788deca19364199f397b51a9914aa63955ee9b

src/libdlog/log_zero_copy.c

index 062be65..371c440 100644 (file)
@@ -80,6 +80,7 @@ static inline struct zlogger_block *get_valid_block(int tid, size_t len)
        int r = alloc_block(tid);
        if (r <= 0)
                return NULL;
+       blk = r;
 
        return get_block((uint16_t)r);
 }