Annotate

spec/scansion/empty_bookmarks.scs @ 13186:affaf6d08d26

util.datamanager: Pad list writes to avoid crossing block boundaries By padding items so that they do not cross block boundaries, it becomes eaiser to delete whole blocks with fallocate() without cutting items in half, improving efficiency of such operations. Since list stores are used for message archives, where the most common deletion operation would be of the oldest entires, at the top of the file. With this, all blocks that contain items to be removed could be deleted without needing to read, delete and write out the whole file.
author Kim Alvefur <zash@zash.se>
date Wed, 07 Jun 2023 00:39:30 +0200
parent 12593:1832b6c9c6ed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12593
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 # mod_scansion_record on host 'localhost' recording started 2022-07-26T21:39:55Z
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 [Client] Romeo
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 password: password
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 jid: juliet@localhost/UaksS4M1xYZB
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 -----
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 Romeo connects
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 Romeo sends:
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 <iq xml:lang='en' type='get' id='bNBJLtpIJXpq'>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 <pubsub xmlns='http://jabber.org/protocol/pubsub'>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 <items node='storage:bookmarks'/>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 </pubsub>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 </iq>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 Romeo receives:
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 <iq id='bNBJLtpIJXpq' type='error'>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 <error type='cancel'>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 </error>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 </iq>
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 Romeo disconnects
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26
1832b6c9c6ed mod_bookmarks: Reduce error about not having bookmarks to debug (thanks tom)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 # recording ended on 2022-07-26T21:40:45Z