armink / FlashDB

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

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

Closed kennyzhang565 closed 4 months ago

kennyzhang565 commented 5 months ago

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

armink commented 4 months ago

Thx for your PR