armink / FlashDB

An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库
Apache License 2.0
1.7k stars 400 forks source link

[fdb_utils][_fdb_flash_write]: fix returned incorrect error code. #300

Open kennyzhang565 opened 1 week ago

kennyzhang565 commented 1 week ago

If user has set file mode, but file mode is disabled, _fdb_flash_write should return FDB_WRITE_ERR, not FDB_READ_ERR.