()
| 243 | } |
| 244 | |
| 245 | func (this *DB) BeginUpdating() bool { |
| 246 | this.statusLocker.Lock() |
| 247 | defer this.statusLocker.Unlock() |
| 248 | |
| 249 | if this.isClosing { |
| 250 | return false |
| 251 | } |
| 252 | |
| 253 | this.countUpdating++ |
| 254 | return true |
| 255 | } |
| 256 | |
| 257 | func (this *DB) EndUpdating() { |
| 258 | this.statusLocker.Lock() |
no test coverage detected