Levi Tamasi
cbf5f3be43
Do not move VersionEdit into AtomicGroupReadBuffer ( #6400 )
...
Summary:
https://github.com/facebook/rocksdb/pull/6383 surfaced an issue with
`VersionSet`/`ReactiveVersionSet` and `AtomicGroupReadBuffer::AddEdit`
(which was added in https://github.com/facebook/rocksdb/pull/5411 ):
`AddEdit` moves the `VersionEdit` passed to it into `replay_buffer_`,
however, the client `VersionSet` classes keep using it afterwards. This
*seemed to* work before the refactoring but it really did not: since
`VersionEdit` used to have a user-declared destructor, no move
constructor/move assignment operator was generated, and the `move` in
`AddEdit` was really a copy. The patch makes the copy explicit. Note: it
should be possible to rework this logic so that we can get away
with the move but for now, this should fix the issue.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6400
Test Plan:
`make check`
`make analyze`
Differential Revision: D19824466
Pulled By: ltamasi
fbshipit-source-id: f38033967daf2a39c78dcd6e12978bafe37632b4
2020-02-10 17:15:42 -08:00
..
2020-02-10 15:52:52 -08:00
2020-02-10 15:52:52 -08:00
2019-12-17 13:22:57 -08:00
2019-09-13 13:50:43 -07:00
2019-12-11 17:19:43 -08:00
2020-02-10 15:52:52 -08:00
2019-12-13 14:48:41 -08:00
2020-01-07 12:32:20 -08:00
2020-02-04 01:27:26 -08:00
2019-12-18 11:54:35 -08:00
2020-02-03 14:13:39 -08:00
2020-02-03 14:13:39 -08:00
2019-11-01 11:46:19 -07:00
2019-08-06 14:26:44 -07:00
2019-09-11 18:09:00 -07:00
2020-02-10 15:52:52 -08:00
2019-12-13 14:48:41 -08:00
2019-12-13 14:48:41 -08:00
2019-10-21 16:53:06 -07:00
2020-02-07 16:48:16 -08:00
2019-11-19 15:02:41 -08:00
2019-12-17 13:56:45 -08:00
2020-01-29 12:57:48 -08:00
2020-01-30 23:10:24 -08:00
2020-01-21 12:55:55 -08:00
2018-11-12 16:42:16 -08:00
2019-09-05 17:21:42 -07:00
2019-12-12 19:04:48 -08:00
2020-02-07 10:52:10 -08:00
2019-09-20 12:04:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-10-29 14:36:31 -07:00
2019-05-30 17:44:09 -07:00
2019-05-30 17:44:09 -07:00
2020-01-28 14:44:05 -08:00
2020-01-28 14:44:05 -08:00
2019-12-18 11:54:35 -08:00
2019-02-14 14:41:36 -08:00
2019-09-09 11:24:11 -07:00
2019-08-06 14:26:44 -07:00
2020-01-10 16:53:19 -08:00
2020-01-16 14:35:10 -08:00
2019-09-16 16:17:09 -07:00
2019-12-12 15:18:02 -08:00
2020-02-06 10:15:44 -08:00
2019-03-01 10:42:09 -08:00
2019-09-09 11:24:11 -07:00
2018-07-17 14:43:18 -07:00
2020-01-31 15:44:14 -08:00
2020-01-07 08:36:44 -08:00
2020-01-07 08:36:44 -08:00
2020-02-04 11:39:23 -08:00
2020-01-30 23:10:24 -08:00
2019-12-13 14:48:41 -08:00
2020-01-23 14:01:28 -08:00
2019-05-31 17:23:59 -07:00
2019-09-20 12:04:26 -07:00
2019-09-11 18:09:00 -07:00
2019-09-18 16:58:21 -07:00
2020-02-03 18:16:52 -08:00
2020-01-30 10:56:29 -08:00
2018-10-04 20:46:50 -07:00
2019-10-14 15:21:01 -07:00
2019-10-14 15:21:01 -07:00
2019-05-31 11:57:01 -07:00
2019-09-13 14:49:47 -07:00
2020-02-10 15:52:52 -08:00
2019-12-13 14:48:41 -08:00
2019-12-12 14:08:02 -08:00
2019-05-31 17:23:59 -07:00
2019-05-30 17:44:09 -07:00
2020-01-13 16:27:42 -08:00
2019-05-30 17:44:09 -07:00
2019-05-31 17:23:59 -07:00
2019-12-13 14:48:41 -08:00
2020-02-10 15:52:52 -08:00
2019-12-13 14:48:41 -08:00
2019-12-12 19:04:48 -08:00
2019-08-23 13:55:34 -07:00
2019-06-06 13:56:07 -07:00
2019-12-17 13:22:57 -08:00
2019-05-30 17:44:09 -07:00
2020-02-10 15:52:52 -08:00
2019-12-13 14:48:41 -08:00
2019-09-20 12:04:26 -07:00
2020-01-08 17:51:42 -08:00
2020-01-07 08:36:44 -08:00
2019-01-15 21:34:38 -08:00
2019-10-24 14:44:15 -07:00
2018-08-24 18:13:20 -07:00
2019-09-16 10:33:51 -07:00
2020-02-04 11:39:23 -08:00
2019-12-13 14:48:41 -08:00
2019-09-16 10:33:51 -07:00
2019-09-11 18:09:00 -07:00
2018-05-03 15:43:09 -07:00
2018-05-03 15:43:09 -07:00
2019-07-25 15:27:39 -07:00
2019-07-02 12:07:01 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 17:44:09 -07:00
2019-12-13 14:48:41 -08:00
2019-12-16 13:16:31 -08:00
2019-12-16 13:16:31 -08:00
2020-01-28 14:44:05 -08:00
2019-12-13 19:11:19 -08:00
2019-04-11 14:28:26 -07:00
2019-05-30 17:44:09 -07:00
2019-06-04 10:24:14 -07:00
2018-12-17 17:33:46 -08:00
2017-07-15 16:11:23 -07:00
2020-01-10 16:53:19 -08:00
2019-09-18 11:52:17 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 17:44:09 -07:00
2017-07-15 16:11:23 -07:00
2019-10-21 16:53:06 -07:00
2019-06-10 11:53:31 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 17:44:09 -07:00
2019-05-30 11:25:51 -07:00
2020-01-21 16:12:43 -08:00
2020-01-21 16:12:43 -08:00
2019-05-30 11:25:51 -07:00
2019-09-20 12:04:26 -07:00
2019-09-05 17:30:29 -07:00
2019-07-23 08:08:19 -07:00
2019-12-13 14:48:41 -08:00
2020-02-10 15:52:52 -08:00
2019-01-16 09:55:32 -08:00
2017-07-15 16:11:23 -07:00
2020-01-07 08:36:44 -08:00
2020-02-07 16:48:16 -08:00
2019-12-13 14:48:41 -08:00
2019-12-13 14:48:41 -08:00
2019-03-18 12:15:34 -07:00
2019-03-18 12:15:34 -07:00
2019-12-13 14:48:41 -08:00
2019-08-26 11:26:29 -07:00
2019-12-12 19:04:48 -08:00
2019-08-23 13:55:34 -07:00
2020-02-10 15:52:52 -08:00
2020-02-07 13:27:06 -08:00
2019-12-13 14:48:41 -08:00
2020-02-10 15:52:52 -08:00
2020-02-10 15:52:52 -08:00
2020-02-10 15:52:52 -08:00
2020-02-10 15:52:52 -08:00
2020-02-10 17:15:42 -08:00
2020-02-10 15:52:52 -08:00
2019-12-13 14:48:41 -08:00
2019-12-13 14:48:41 -08:00
2019-12-13 14:48:41 -08:00
2017-07-15 16:11:23 -07:00
2019-09-12 17:15:18 -07:00
2019-09-09 11:24:11 -07:00
2019-12-16 13:16:31 -08:00
2019-06-10 11:53:31 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 11:25:51 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2020-02-07 15:20:38 -08:00
2019-09-11 18:28:33 -07:00