View Single Post
Old 09-13-2021, 03:57 AM   #688
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,204
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
I suggest you open a bug report suggesting that
Code:
set_metadata(id_, get_metadata(_id))
shouldn't signal any dirty books and see what he says.
I tried this and it does not make a difference, the set_metadata() still calls set_field() for every field, which in turn will dispatch a db event. I think I may have misunderstood you here.

Quote:
Originally Posted by chaley View Post
With the changes I have made you get changed events for the set_field() operations, but with an empty book set. I don't know if it is worth trying to filter those out at the
I don't think it is worth filtering out. At least in my case, they will be discarded.
capink is offline   Reply With Quote