atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

`Db::add_resource_opts` is confusing and maybe unneeded

Open joepio opened this issue 4 months ago • 0 comments

Some time ago I implemented transaction logic in AtomicServer. However, I still kept the add_resource_opts and the ::set_propvals methods, in addition to the new apply_transaction logic.

Although I don't think this is causing any issues now, it's a potential source for bugs as both implemetations could end up being slightly different (e.g. in how they serialize resources).

I think there are at least these solutions:

  1. Make add_resource_opts depend on add_resource_tx and get rid of set_propvals
  2. Remove add_resource_opts altogether. Is it still needed? We use it in populate and some benchmarks, but I think it might make sense to migrate these to use the transcactional one.

joepio avatar Jul 15 '25 14:07 joepio