Skip to content

Commit 6230c52

Browse files
authored
[Bug fix] modify the mode from 'r+' to 'r' to avoid new ldb sector's creation during scanning process (#13)
Co-authored-by: user <superkaiy>
1 parent 88c77a8 commit 6230c52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/recordset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ uint32_t ldb_fetch_recordset(uint8_t *sector, struct ldb_table table, uint8_t* k
5151
if (sector) node = sector;
5252
else
5353
{
54-
ldb_sector = ldb_open(table, key, "r+");
54+
ldb_sector = ldb_open(table, key, "r");
5555
if (!ldb_sector) return 0;
5656
node = calloc(LDB_MAX_REC_LN + 1, 1);
5757
}

0 commit comments

Comments
 (0)