@@ -34,7 +34,8 @@ exception RO_not_allowed
3434(* * Raised whenever a read-only instance performs a write action. *)
3535
3636exception RW_not_allowed
37- (* * Raised whenever a read-write instance performs a reserved read-only action. *)
37+ (* * Raised whenever a read-write instance performs a reserved read-only action.
38+ *)
3839
3940exception Closed
4041(* * Raised whenever a closed instance is used. *)
@@ -167,15 +168,17 @@ struct
167168 (* * The log_async file contains bindings added concurrently to a [merge]
168169 operation. It is only present when a merge is ongoing. *)
169170 mutable open_instances : int ;
170- (* * The number of open instances that are shared through the [Cache.t]. *)
171+ (* * The number of open instances that are shared through the [Cache.t].
172+ *)
171173 mutable lru : Lru .t ;
172174 writer_lock : IO.Lock .t option ;
173175 (* * A lock that prevents multiple RW instances to be open at the same
174176 time. *)
175177 sync_lock : Semaphore .t ;
176178 (* * A lock that prevents multiple [sync] to happen at the same time. *)
177179 merge_lock : Semaphore .t ;
178- (* * A lock that prevents multiple [merges] to happen at the same time. *)
180+ (* * A lock that prevents multiple [merges] to happen at the same time.
181+ *)
179182 rename_lock : Semaphore .t ;
180183 (* * A lock used to protect a critical bit when finalizing a [merge]
181184 operation. All operations should be guarded by this lock. *)
@@ -303,7 +306,8 @@ struct
303306 if
304307 (* the generation has changed *)
305308 h.generation > Int63. succ old_generation
306- || (* the last sync was done between clear(log) and clear(log_async) *)
309+ ||
310+ (* the last sync was done between clear(log) and clear(log_async) *)
307311 (h.generation = Int63. succ old_generation && h.offset = Int63. zero)
308312 then (
309313 (* close the file .*)
@@ -324,9 +328,9 @@ struct
324328 " [%s] log_async IO header monotonicity violated during sync:@,\
325329 \ offset: %a -> %a@,\
326330 \ generation: %a -> %a@,\
327- Reloading the log to compensate." ( Filename. basename t.root)
328- Int63. pp old_offset Int63. pp h.offset Int63. pp old_generation
329- Int63. pp h.generation);
331+ Reloading the log to compensate."
332+ ( Filename. basename t.root) Int63. pp old_offset Int63. pp h.offset
333+ Int63. pp old_generation Int63. pp h.generation);
330334 Log_file. reload log)
331335
332336 (* * Syncs the [index] of the instance by checking on-disk changes. *)
@@ -446,7 +450,8 @@ struct
446450 Search. interpolation_search (IOArray. v index.io) key ~low ~high
447451
448452 (* * Finds the value associated to [key] in [t]. In order, checks in
449- [log_async] (in memory), then [log] (in memory), then [index] (on disk). *)
453+ [log_async] (in memory), then [log] (in memory), then [index] (on disk).
454+ *)
450455 let find_instance t key =
451456 let find_if_exists ~name ~find db =
452457 match db with
0 commit comments