tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

database directory parameter not work #2983

Closed zizhuangfly closed 3 months ago

zizhuangfly commented 3 months ago

I have a TDLib program in java, which can run well in local dev environment, but cannot work on server. the question is the database_directory param setting is not working on the server, the directory exists and can be written or read, but TDLib seems just ignore the param setting, and creates a subdir named null in the current work directory. It's really very weird, the created directory name is just null literally, 4 chars. here is the view of the the directory:

./null |-- database | `-- td.binlog `-- files

I cannot figure out how this happens, hope someone can shed a light on this.

zizhuangfly commented 3 months ago

sorry, I made a mistake, should check my own code again and again....

levlam commented 3 months ago

You pass "null" as the value of database_directory.

zizhuangfly commented 3 months ago

yes, I supposed the config value had been configured and read correctly, while it was not true. the configured value was changed by some middle-step, thus correct input but got wrong output. log showed input, but ignored output. very stupid mistake.