[tarantool-patches] Re: [PATCH v2 2/7] vinyl: don't exempt dropped indexes from dump and compaction
Konstantin Osipov
kostja at tarantool.org
Mon Aug 19 23:47:00 MSK 2019
* Vladimir Davydov <vdavydov.dev at gmail.com> [19/08/19 19:57]:
> vy_lsm_read_set_t read_set;
> + /**
> + * Triggers run when the last reference to this LSM tree
> + * is dropped and the LSM tree is about to be destroyed.
> + * A pointer to this LSM tree is passed to the trigger
> + * callback in the 'event' argument.
> + */
> + struct rlist on_destroy;
Please explain in the comment that the compaction scheduler task takes a
reference as well, so if the dropped index happens to be compacted
at the moment, it will be dropped only when the compaction task
finishes.
Why did you add a trigger - to avoid dependency
loops between vy_lsm and vy_scheduler? But sounds like it's
simpler to make vy_lsm aware in vy_scheduler and register/unregister
itself in create/destroy. Why did you choose to add a trigger
instead?
--
Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list