Commit f4e92d8
In EventuallyPersistentStore, move stop task funcs to deinitialize() from dtor
In the class EventuallyPersistentStore, after an instance is created, some
operations are done to create tasks, etc in the func initialize(). However,
these are undone during dtor of the class. This is not always safe as
flagged by the thread sanitizer in
http://cv.jenkins.couchbase.com/job/ep-engine-threadsanitizer-master/1479/
This commit does the undoing of initialize() stuff in deinitialize() before
delete.
Change-Id: Ie090fd74b7bad77642666d85969c97ae5001a027
Reviewed-on: http://review.couchbase.org/68974
Tested-by: buildbot <[email protected]>
Reviewed-by: Dave Rigby <[email protected]>1 parent bad7452 commit f4e92d8
3 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
567 | | - | |
| 566 | + | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
579 | 580 | | |
| 581 | + | |
580 | 582 | | |
581 | 583 | | |
582 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6401 | 6401 | | |
6402 | 6402 | | |
6403 | 6403 | | |
| 6404 | + | |
6404 | 6405 | | |
6405 | 6406 | | |
6406 | 6407 | | |
| |||
0 commit comments