aboutsummaryrefslogtreecommitdiff
path: root/src/database/database-leveldb.h
diff options
context:
space:
mode:
authorsofar <sofar+github@foo-projects.org>2019-03-04 23:11:13 -0800
committerLoïc Blot <nerzhul@users.noreply.github.com>2019-03-05 08:11:13 +0100
commit61e5fbab721898a431b15a5a7e24efb58cd80eb4 (patch)
treec6a8fa1193434c142cd6dd688228a41bcc32a525 /src/database/database-leveldb.h
parent51662dabb4ba38ea1ec027d907fb2d5f4e0412ad (diff)
downloadminetest-61e5fbab721898a431b15a5a7e24efb58cd80eb4.tar.gz
minetest-61e5fbab721898a431b15a5a7e24efb58cd80eb4.tar.bz2
minetest-61e5fbab721898a431b15a5a7e24efb58cd80eb4.zip
getS16NoEx() returns true unless syntactical error in conf. (#8304)
The getS16NoEx() handler will return true unless there is a `[num_emerge_threads]` line in the `minetest.conf` at which point the excption handler part is reached. Due to the fact that `defaultsettings.cpp` has a default value set for this setting, that never will happen. Because of this, the code will never check the number of threads on the system, and keep `nthreads = 0`. If that happens, the value is changed to `1` and only 1 emerge thread will be used. The default should be set to `1` instead, due to the potential unsafe consequences for the standard sqlite map files, but that should be a separate commit that also adds documentation for that setting. This commit focuses on removing this `hiding` bug instead.
Diffstat (limited to 'src/database/database-leveldb.h')
0 files changed, 0 insertions, 0 deletions
id='n144' href='#n144'>144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207