question about libpmemobj, Is there any API to flush all modified objects

29 views
Skip to first unread message

Hiro Yoshioka

unread,
Aug 27, 2023, 12:47:48 AM8/27/23
to pm...@googlegroups.com
Hi,

I have a naive question. If this forum is not appropriate one,
please let me know the right place to ask.

Is there any API to flush all modified objects using by libpmemobj library?

What I want to do is
  pop = pmemobj_create(...)
  // do something ...
  // persist all modified objects

Thanks in advance,
  Hirotaka Yoshioka

Oksana Sałyk

unread,
Aug 31, 2023, 7:28:28 AM8/31/23
to pmem

Hi Hirotaka,

If you modify objects in a libpmemobj transaction, they are automatically flushed (the library keeps track of them).
If you modify objects outside the transaction, there is no way to flush only the modified objects.

Regards,
Oksana.

Reply all
Reply to author
Forward
0 new messages