-
Notifications
You must be signed in to change notification settings - Fork 0
/
logs
8855 lines (5863 loc) · 261 KB
/
logs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
commit 01b1b7dc204abdf3849536979205dc9e3a0e3ece
Author: Howard Chu <hyc@openldap.org>
Date: Mon Jun 7 15:54:32 2021 +0100
ITS#9574 add mdb_drop to .gitignore
commit 4b6154340c27d03592b8824646a3bc4eb7ab61f5
Author: Howard Chu <hyc@openldap.org>
Date: Fri Apr 9 14:06:33 2021 +0100
ITS#9496 fix mdb_env_open bug from #8704
Broken in af2f8cc814fabe2814cacb573be3338292f47c0d
commit 48a7fed59a8aae623deff415dda27097198ca0c1
Author: Howard Chu <hyc@openldap.org>
Date: Sun Mar 14 14:25:55 2021 +0000
ITS#9376 simplify
commit 2d06d7aa60ef776c79c754e2f0441a6f76e1ed5a
Author: Howard Chu <hyc@openldap.org>
Date: Sun Mar 14 14:29:44 2021 +0000
ITS#9500 fix regression from ITS#8662
commit 3464af65c99ff66a91ad06a841529324a01624e4
Author: Quanah Gibson-Mount <quanah@openldap.org>
Date: Thu Feb 18 16:25:45 2021 +0000
ITS#9469 - Typo fixes
commit 52bc29ee2efccf09c650598635cd42a50b6ecffe
Author: Howard Chu <hyc@openldap.org>
Date: Thu Feb 11 11:34:57 2021 +0000
ITS#9461 fix typo
commit 917e4f1d142731e67d43e43c957432f3f8f31bf9
Author: Howard Chu <hyc@openldap.org>
Date: Tue Feb 9 23:38:06 2021 +0000
ITS#9461 refix ITS#9376
Was setting C_DEL flag gratuitously
commit 5b75edb6337b28669c1370bc33442e272e72f91a
Author: Quanah Gibson-Mount <quanah@openldap.org>
Date: Tue Jan 12 19:20:01 2021 +0000
Happy New Year!
commit a99290f253a8df45679c8e2b159e83b835e8eb24
Author: Howard Chu <hyc@openldap.org>
Date: Wed Oct 21 21:24:53 2020 +0100
Fixes for repeated deletes with xcursor
On DUPSORT DBs, must initialize xcursor regardless of whether
caller requested its data.
commit 2fd44e325195ae81664eb5dc36e7d265927c5ebc
Author: Howard Chu <hyc@openldap.org>
Date: Tue Jun 16 19:49:14 2020 +0100
ITS#9278 fix robust mutex cleanup for FreeBSD
FreeBSD 11 supports robust process-shared POSIX mutexes,
but requires them to be explicitly destroyed before munmap
commit 8d0cbbc936091eb85972501a9b31a8f86d4c51a7
Author: Howard Chu <hyc@openldap.org>
Date: Sat Apr 25 00:46:58 2020 +0100
ITS#9017 cleanup Windows off_t
commit 1f026685fd5be35a9641c5c59eff51967244cc26
Author: Howard Chu <hyc@openldap.org>
Date: Fri Apr 24 15:07:33 2020 +0100
ITS#9017 doxygen comment for MDB_FIXEDSIZE
commit b77c2ba72af8053e221b337995feb4e8f7fbb1e9
Author: Howard Chu <hyc@openldap.org>
Date: Fri Apr 24 15:03:33 2020 +0100
ITS#9017 LMDB: fix off_t usage on Windows
commit 147582b5dcd86d1d92bb9a3fda9eb640300ccae3
Author: Kris Zyp <kriszyp@gmail.com>
Date: Tue Feb 18 22:50:41 2020 -0700
ITS#9017 LMDB: allow using fixed file size on Windows
commit da0527ac75b811419b7007202799f96b2edb5aef
Author: Kris Zyp <kriszyp@gmail.com>
Date: Tue Feb 18 22:49:03 2020 -0700
ITS#9017 LMDB: improve Windows sync commit perf
commit cb256f409bb53efeda4ac69ee8165a0b4fc1a277
Author: Howard Chu <hyc@openldap.org>
Date: Thu Jan 23 14:50:00 2020 +0000
ITS#9155 lmdb: free mt_spill_pgs in non-nested txn on end
commit b1afa1f2c743b79962a73d21f5e2f77cff80b353
Author: Quanah Gibson-Mount <quanah@openldap.org>
Date: Thu Jan 9 16:32:20 2020 +0000
Happy New Year!
commit d7b515ca3bf211f7a7e8326c88b94298b8ebffb4
Author: Howard Chu <hyc@openldap.org>
Date: Fri Nov 15 16:07:51 2019 +0000
Silence spurious fallthru warning
commit 522c62035cdf78f3b7ccd5623ed3e175a6ce5259
Author: Howard Chu <hyc@openldap.org>
Date: Fri Nov 15 16:06:34 2019 +0000
ITS#9118 add MAP_NOSYNC for FreeBSD
commit c3e6b4209eed13af4a3670e5f04f42169c08e5c6
Author: Howard Chu <hyc@openldap.org>
Date: Sun Nov 10 05:20:37 2019 +0000
Revert "ITS#9116 LMDB: fix bogus error check in read-only txns"
This reverts commit 0e895ffe4391fd9a8a484395887a9f7d156b86ae.
Was not an LMDB bug.
commit a2121bb0781c259c41f94cbad9a64a4ed51bc26c
Author: Howard Chu <hyc@openldap.org>
Date: Sun Nov 10 05:00:47 2019 +0000
ITS#8704 add missing opt flags in prev commit
commit 0e895ffe4391fd9a8a484395887a9f7d156b86ae
Author: Howard Chu <hyc@openldap.org>
Date: Sun Nov 10 04:58:35 2019 +0000
ITS#9116 LMDB: fix bogus error check in read-only txns
commit 5c012bbe033f9bbb273078b07dded59f080d348d
Author: Howard Chu <hyc@openldap.org>
Date: Mon Aug 26 17:51:53 2019 +0100
ITS#9068 fix backslash escaping
mdb_load wasn't properly inserting escaped backslashes into the data.
mdb_dump wasn't escaping backslashes when generating printable output.
commit 332718f1487d5a08324b522716e2cc3915b5ffea
Author: Kris Zyp <kriszyp@gmail.com>
Date: Mon Apr 15 20:07:56 2019 -0600
ITS#9007 don't free loose writemap pages
Broken in ITS#8756
commit 22af3288c7a5e7130d8031d6c63162018484f8ec
Author: Ka Ho Ng <khng300@gmail.com>
Date: Sun Feb 17 23:59:56 2019 +0800
ITS#8978 Fix mdb_env_open2() failing when getting handle for NTDLL.dll
Always call GetModuleHandleW() with Unicode string, as mdb_fopen() is
calling CreateFileW() already.
commit 4f9fe9fcead4ce3c49d80d39526472b5c274b188
Author: Howard Chu <hyc@openldap.org>
Date: Wed Jan 30 23:43:34 2019 +0000
ITS#8969 tweak mdb_page_split
Bump up number of keys for which we use fine-grained splitpoint search
commit ef8364575f43e5e7e48e39b16503b6cfaf976b53
Author: Howard Chu <hyc@openldap.org>
Date: Thu Jan 17 19:50:03 2019 +0000
Fix merge error
commit 0a954f1a67410dceb0fafe202bd6c2f2f409cb4a
Author: Howard Chu <hyc@openldap.org>
Date: Wed Apr 12 23:55:29 2017 +0100
Fix Android recognition
The official macro is __ANDROID__; ANDROID may or may not be defined.
commit aa77c832b8e6fc696078017f550d119cdfc0f232
Author: Howard Chu <hyc@openldap.org>
Date: Wed Sep 20 18:38:47 2017 +0100
Add -a append option to mdb_load
To allow reloading of custom-sorted DBs from mdb_dump
commit af2f8cc814fabe2814cacb573be3338292f47c0d
Author: Howard Chu <hyc@openldap.org>
Date: Sat Aug 12 11:16:45 2017 +0100
ITS#8704 Fix PREVMETA, rename to PREVSNAPSHOT
and enforce exclusive access to environment. Also fix txn_begin/pick_meta
to use correct meta page, and reset the flag after successful commit.
commit ce834559041747a8ae29884d2b82e144adc7600f
Author: Howard Chu <hyc@openldap.org>
Date: Mon Jul 31 19:15:21 2017 +0100
ITS#8704 Add MDB_PREVMETA support to tools
commit 7edf504106c61639a89b9a4e5987242598196932
Author: Howard Chu <hyc@openldap.org>
Date: Thu Jan 17 18:46:10 2019 +0000
IDLs for VL32 must be same size as for 64bit
commit 1de70b21306006331fc4bf20b403c8dd17b7c425
Author: Howard Chu <hyc@openldap.org>
Date: Mon Jan 14 19:06:20 2019 +0000
Happy New Year
commit 11308dfe26ff4daf53b61e06f6fb35248e2ced7f
Author: Quanah Gibson-Mount <quanah@openldap.org>
Date: Mon Jan 14 18:39:38 2019 +0000
Happy New Year!
commit 561ba50158f45d85894667e41050b5d0f29fc132
Author: moneromooo-monero <moneromooo-monero@users.noreply.github.com>
Date: Tue May 15 10:53:13 2018 +0100
ITS#8857 document mdb_cursor_del does not invalidate the cursor
commit eab90d5389c309761df1731df282b396dc0999f4
Author: Howard Chu <hyc@openldap.org>
Date: Wed Aug 29 01:25:01 2018 +0100
ITS#8908 DOC: GET_MULTIPLE etc don't return the key
Unnecessary since these are DUPs, the key will always be the same
commit 26c7df88e44e31623d0802a564f24781acdefde3
Author: Howard Chu <hyc@openldap.org>
Date: Mon Aug 6 13:10:59 2018 +0100
ITS#8891 fix M$ WINAPI typedefs
commit 1ffe472a080fcd3c7dab6e352848703ad7adbe14
Author: Howard Chu <hyc@openldap.org>
Date: Fri Jun 22 16:30:13 2018 +0100
ITS#8756 remove loose pg from dirty list in freelist_save
commit 86a90cad721cbdc0bb0a9c3bf15396f5c946ae95
Author: Howard Chu <hyc@openldap.org>
Date: Wed May 2 17:05:29 2018 +0100
ITS#8844 use getpid() in mdb_env_close0()
commit 7aa7fadc5b6a0660cb004ffdbb7f80575add4b9b
Author: Howard Chu <hyc@openldap.org>
Date: Mon Apr 2 18:01:19 2018 +0100
ITS#8831 move flag init into readhdr
Avoid stomping on flags from 1st readhr invocation
commit 0a2622317f189c7062d03d050be6766586a548b2
Author: Quanah Gibson-Mount <quanah@openldap.org>
Date: Thu Mar 22 15:20:57 2018 +0000
Happy New Year
commit 3b0f68a462355c5d565abff20d1515dce2afe697
Author: Howard Chu <hyc@openldap.org>
Date: Tue Mar 20 18:34:56 2018 +0000
ITS#8819 can't use fakepage mp_ptrs directly
commit e85ae1fe883b4847f07cfebc2630636d06e429c3
Author: Howard Chu <hyc@openldap.org>
Date: Sun Feb 18 21:00:54 2018 +0000
ITS#8324 More for Win32 NTDLL junk
Use GetProcAddress at runtime, avoid buildtime NTDLL link issues
commit 55fcd0cfee1cb4bbe1033a3efbad9795f79d4014
Author: Howard Chu <hyc@openldap.org>
Date: Sun Nov 19 19:44:53 2017 +0000
Add mdb_drop tool
commit 4d5e2d2a2ac38b9d56b6ba73187c325024718167
Author: Howard Chu <hyc@openldap.org>
Date: Thu Oct 26 19:04:37 2017 +0100
ITS#8760 fix regression in 0.9.19
commit bb8502f08800a44a6b91a94d6478aa7101c4cc77
Author: Quanah Gibson-Mount <quanah@symas.com>
Date: Wed Jun 7 13:42:51 2017 -0700
ITS#8612 Fix Solaris builds with liblmdb
This patch fixes liblmdb builds on Solaris and derivatives by defining
_POSIX_PTHREAD_SEMANTICS
commit 8c2c5e2b4bf2e4504694aa9684922d505af9ba75
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Mon Sep 11 00:00:14 2017 +0200
Tweak ITS#8722 fix: Use XCURSOR_REFRESH()
This checks XCURSOR_INITED() and fixes the mn_flags check.
commit 7ead4169b6cdf67f72956a2835ff6e6bd6905256
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sun Sep 10 23:59:35 2017 +0200
XCURSOR_REFRESH() fixups/cleanup
* Check NUMKEYS(), similar to f34b61f9471d1c03fe0517b9d817c50c920e378a
"ITS#8722 fix FIRST_DUP/LAST_DUP cursor bounds check".
* Move XCURSOR_INITED() into XCURSOR_REFRESH(). This adds a check in
mdb_cursor_put, below /* converted, write the original data first */.
* Factor mc_ki[] out to XCURSOR_REFRESH().
* Replace an mc_pg[] with mp which is equal (mdb_cursor_del0).
commit fbdd452799b87f40709a48bb316d1df2735f4c9b
Author: Howard Chu <hyc@openldap.org>
Date: Sat Sep 9 15:08:03 2017 +0100
ITS#8728 fix MDB_VL32 freeing overflow page
commit f34b61f9471d1c03fe0517b9d817c50c920e378a
Author: Howard Chu <hyc@openldap.org>
Date: Wed Sep 6 21:15:48 2017 +0100
ITS#8722 fix FIRST_DUP/LAST_DUP cursor bounds check
commit 3daab3be733b933a3fd2263441da4976206b27a2
Author: moneromooo-monero <moneromooo-monero@users.noreply.github.com>
Date: Mon Jul 31 00:04:28 2017 +0100
ITS#8704 add MDB_PREVMETA flag to mdb_env_open
used to open the previous meta page, in case the latest one
is corrupted
From https://github.com/LMDB/lmdb/pull/12
commit 47ca2f7095f2aa6e395b7a5cfec46bce35a5d623
Author: Howard Chu <hyc@openldap.org>
Date: Wed Jul 26 21:37:40 2017 +0100
ITS#8699 more for cursor_del ITS#8622
Set C_DEL flag on reinit'd subcursor
commit 4d2154397afd90ca519bfa102b2aad515159bd50
Author: Howard Chu <hyc@openldap.org>
Date: Thu Mar 23 20:37:24 2017 +0000
ITS#8622 fix xcursor after cursor_del
Re-fix 6b1df0e4c7fadd21d1233d7157229b2d89ccaa04 from ITS#8406
commit b5e5fcc31dd6719a618cd825a0a9c4ecef5d045b
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sun Mar 12 20:08:53 2017 +0100
ITS#8582 Fill in MDB_LOCK_FORMAT
Attempt to stop liblmdb variants compiled with conflicting options
from using the lockfile at the same time and thus breaking it.
commit 52c0df1d5052296200d1db607ba4f6bd6eb35f4d
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sun Mar 12 16:59:23 2017 +0100
Clear any struct padding in idbuf
commit 172d825155a7ba595527181277983ba4022c2115
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sun Mar 12 16:58:51 2017 +0100
Simplify mdb_hash_val() -> mdb_hash()
Simpler usage since it's only called once, rename to match new usage,
and drop 3 loop pessimizations which were optimizations 20 years ago.
commit 68eda68f0b99bd766d1fd52658e088640b67b39c
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sun Mar 12 16:55:14 2017 +0100
Store lock ID instead of pathname in lockfile
This limits the namespace which the user can meddle with for
POSIX semaphores and Windows mutexes. Their names change a
bit, they no longer have fixed lengths.
commit 58ba039b8f30733ad9456cb3a31f9c459e6e0ffe
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Mar 4 13:03:15 2017 +0100
ITS#8582 MDB_LOCK_VERSION = 2 due to format change
commit e36517dbbe157207cde3289776b76ae6d7bd1877
Author: Howard Chu <hyc@openldap.org>
Date: Mon Feb 6 15:09:26 2017 +0000
ITS#8582 keep mutex at end of struct
since it's variable size on Linux/glibc
commit 1db9f32ae23330de44e86419991d64202ce9ac92
Author: Howard Chu <hyc@openldap.org>
Date: Tue Jan 31 10:41:52 2017 +0000
Workaround VL32 cursor refcounting miscount
Don't try to deref cursor page if txn's pagelist is empty
commit 882e27c1b4f40270e712c251d5454c7e93424f58
Author: Howard Chu <hyc@openldap.org>
Date: Sat Jan 14 19:22:34 2017 +0000
Further fix f8ce8a82717ddefdc912fa47c07f1bdee2a3336b
Fully revert the change to GET_MULTIPLE
commit 5eae7aad7e4db9f354fa8a5a52eab9646e07a028
Author: Howard Chu <hyc@openldap.org>
Date: Thu Jan 12 13:35:31 2017 +0000
Fix f8ce8a82717ddefdc912fa47c07f1bdee2a3336b
GET_MULTIPLE was broken
commit 6ac9aa666e6754f195a2e988d0c395f4d6364c28
Author: Howard Chu <hyc@openldap.org>
Date: Wed Jan 11 14:39:08 2017 +0000
Happy New Year
commit f8ce8a82717ddefdc912fa47c07f1bdee2a3336b
Author: Howard Chu <hyc@openldap.org>
Date: Wed Jan 11 11:19:18 2017 +0000
More C_EOF tweaks
commit c44b29eaa84c7d62931252ec0645e24f1e1cff36
Author: Howard Chu <hyc@openldap.org>
Date: Wed Jan 11 11:18:57 2017 +0000
ITS#8557 fix prev commit
commit 511f5880e22baddfe9fc1dee54b41a2deafc3b26
Author: Howard Chu <hyc@openldap.org>
Date: Wed Jan 11 10:33:28 2017 +0000
Tweak cursor_next C_EOF check
Allow C_EOF flag to be stale
commit d84dee516fa4cca41b5234e95c2105eb4737dfb3
Author: Howard Chu <hyc@openldap.org>
Date: Wed Jan 11 09:51:43 2017 +0000
ITS#8557 fix mdb_cursor_last
Optimize mdb_page_search_root(PS_LAST) when cursor is already near
last position, ignoring C_EOF flag for now.
commit 59ac317d2a4a81613e3e1dbc17fd2d3ec4205ba1
Author: Howard Chu <hyc@openldap.org>
Date: Fri Jan 6 19:48:58 2017 +0000
ITS#8558 fix mdb_load with escaped plaintext
commit 2e3eaf2ce26bf643d52c4c98b77b9d9bc71ed2c1
Author: Howard Chu <hyc@openldap.org>
Date: Wed Dec 28 18:30:19 2016 +0000
ITS#8554 kFreeBSD is like BSD
Doesn't have POSIX robust mutexes - GNU userland on BSD kernel
commit 4bc270a2cb5d5a4ef1f01c70faa2bdfe5019ef16
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Wed Dec 21 21:40:14 2016 +0100
More MDB_node doc
commit be94a7565bfb553bb1a0ab71ddd602d48ffcaa0f
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Wed Dec 21 16:33:47 2016 +0100
Doxygen fixes. Use DISTRIBUTE_GROUP_DOC.
- DISTRIBUTE_GROUP_DOC makes doxygen give several fields the
same doc: mn_hi + mn_lo in MDB_node.
- With mdb_mutex_t + mdb_mutexref_t, instead split them up.
- Don't hide a doxygen #name inside double quotes.
commit 72c893fc82899b4e4d4fb506116ba109ee66032a
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Thu Dec 15 22:12:45 2016 +0100
Mention MDB_PREV_MULTIPLE along with MDB_NEXT_MULTIPLE
commit e539654051a6300997be7420e67b31d08c87aa90
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Thu Oct 20 09:51:22 2016 +0200
ITS#8504 Fix prev commit: mc_error, #ifdef SIGPIPE
Never clear mc_error, we could lose a failure in the other thread.
commit 3e7a8e26e6a06ef34fcb460b608c6e65f688b9a6
Author: Lorenz Bauer <lmb@cloudflare.com>
Date: Thu Oct 20 09:51:22 2016 +0200
ITS#8504 mdb_env_copyfd2(): Don't abort on SIGPIPE
Return EPIPE instead.
commit 65e95ffccf512dd1514083bd5768f1595560eb53
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Dec 10 22:00:31 2016 +0100
ITS#7377 Catch mdb_cursor_sibling() error
commit d78c80d902e3b508b6d118c975a6c6a8d9782f40
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Dec 10 21:42:39 2016 +0100
Clean up and comment C_UNTRACK
Don't use it as a "cursor is tracked" hint in mdb_pages_xkeep().
It's been harmless so far, but would break after mdb_cursor_copy().
Checking m0 directly short-circuits better anyway.
commit 1fb0822b408931f7e0d7d0a868b833a89c83b27f
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Dec 10 21:11:12 2016 +0100
ITS#8355 cleanup
Drop ~C_EOF, pointless after 8c215aa970215a58ee0df458813c0405ad27a6e9
commit c0ff9a267ae2a943c99452fae0159d77deb46562
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Dec 10 17:17:28 2016 +0100
MDB_VL32 cleanup: MDB_env.mm_mapsize type
commit e1be73c771e3ac8dfc7528c0825c56eb8ed295a6
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Dec 10 09:16:17 2016 +0100
ITS#8542 mdb_dbi_open(): Protect mainDB cursors
commit ffd13db3f84cef20f486e73c465d674e6e1500bd
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Fri Dec 9 00:03:36 2016 +0100
Cleanup: Add flag DB_DUPDATA, drop DB_DIRTY hack
commit ef066598b5e4c0eaab29c858451569439cb6b5d6
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Wed Dec 7 19:06:11 2016 +0100
MDB_CP_COMPACT comments
commit 3dda2bfa4a33e7f22ab92dafc501411c90647e16
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Wed Dec 7 19:04:19 2016 +0100
doxygen cleanup
commit 72f875b48a0f9c588e4f26828f18c547525a507d
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Wed Dec 7 18:55:21 2016 +0100
Note functions which must set MDB_TXN_ERROR on failure
Other functions depend on them to do so.
For mdb_node_read(), instead remove such a dependence.
commit 08e4684d37b45cff97ea0ba17573165a63fb622c
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Fri Dec 2 06:20:29 2016 +0100
MDB_VL32 mdb_page_get(): Set MDB_TXN_ERROR on failure.
commit a70200f15f06397ef9029ca26fabc925ce396ead
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Fri Dec 2 05:22:11 2016 +0100
Fix mdb_env_open() with MDB_VL32
Init me_rpmutex independently of MDB_NOLOCK.
Plug leaks on mdb_env_open() failure.
Tweak mdb_env_close0() to handle the rearranged mdb_env_open().
commit f3ab0d23a4470c187f971e6da4d63a306e125512
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Thu Dec 1 21:17:42 2016 +0100
Factor out refreshing sub-page pointers
commit fa83b25ec536ac2642f8e0d3c6bf587008513ef4
Author: Howard Chu <hyc@openldap.org>
Date: Tue Nov 29 19:19:45 2016 +0000
More for ITS#8406
xcursor fixup depends on init state
commit e58db7d5568c8ac91c0f1e6c64a58ba6f84b037d
Author: Howard Chu <hyc@openldap.org>
Date: Sat Nov 12 23:11:20 2016 +0000
More for ITS#8406
Revert excess cursor fixup
commit f7e85d7804109a429dd6d24b19cc2148a7f43813
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 27 07:03:45 2016 +0200
Only set me_mfd if needed. Drop unused read access.
commit 77845345ca9bf3854fd9da60a3e3b0527fa9c76a
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 27 07:03:42 2016 +0200
ITS#8505 Clarify fork() caveat, mdb_env_get_fd(), flock->fcntl.
commit 6355dade31e35af5527e9139a39fc1e3a5da04fd
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 27 07:03:40 2016 +0200
ITS#8505 Protect parent from fork()-pthread_exit()
commit 04acac634a7b276332e2cc4d389b8d647a0a7fad
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 27 07:03:38 2016 +0200
ITS#8505 Set FD_CLOEXEC for me_mfd,env_copy as well
commit 15666878afb57439abfaf5c5a1f3a338f4e23104
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 27 07:03:34 2016 +0200
Move opening files to mdb_fopen()
No change in functionality.
commit cdc3f9cc2d1d440920352b2f4524e28a93445e3a
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Sep 17 21:31:04 2016 +0200
Factor filename handling out to mdb_fname_*()
No change in functionality, except needs less mallocing.
commit 67fb3c746a43bf2d2ce4834ede5fba940c9286a5
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 6 18:12:01 2016 +0200
ITS#7992 Tighter utf8_to_utf16(), fix errcodes
The 0xFFFD check seems due to misleading MultiByteToWideChar() doc.
Bad UTF-8 gives 0xFFFD in the output string, not the return value.
commit d87ee20e0bf7fc751f75412082df307647165d56
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 6 17:56:13 2016 +0200
Clean up strange fcntl result check
...and check !MDB_CLOEXEC in an 'if' rather than '#if'
to match its non-zero usage.
commit 3dd2d207d7e2cdd0fe040b919be56a1e23851aea
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 6 17:48:31 2016 +0200
Drop spurious Errcode() call
commit cdcf9da600a5ffce71b8dba212c33b3e72bdbb8c
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Sep 6 17:41:02 2016 +0200
ITS#7682 F_NOCACHE: Allow error, skip any O_DIRECT
We can run without F_NOCACHE if it fails. And we do not know
what combining it with O_DIRECT means, if a system has both.
commit 26e226b2a8cdba4208eabca394537900c4eda3b3
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Sep 3 09:41:30 2016 +0200
Silence warning for initializer "mdb_copy my = {0}"
1st struct member was not a scalar.
commit 45a88275d2a410e683bae4ef44881e0f55fa3c4d
Author: Howard Chu <hyc@openldap.org>
Date: Thu Sep 1 00:41:35 2016 +0100
ITS#8489 reset cursor EOF flag in cursor_set
It usually gets done anyway, but one of the fastpath shortcuts
bypassed this step.
commit da4443a9b3f6b3ecf8594a706e0403eaf301727f
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sun Aug 21 23:22:18 2016 +0200
Clean up MDB_USE_ROBUST #defines
Make explicit and default nonzero equivalent. Parenthesize.
commit 36d374ba9eb75fe9812cf69a29bae69e94f559f9
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sun Aug 21 23:20:22 2016 +0200
Fix mdb_page_list() message
commit c6510147cee88d182af431c14a61fad6fae18be3
Author: Howard Chu <hyc@openldap.org>
Date: Fri Aug 19 17:24:25 2016 +0100
ITS#8481 make shared lib suffix overridable
commit 7e2290c52bb4e8543a84f4e7f6c9a4f4d8ebf5d2
Author: Howard Chu <hyc@openldap.org>
Date: Thu Aug 11 21:30:56 2016 +0100
MDB_VL32 plug rpage leak
mdb_cursor_set wasn't unref'ing as intended.
commit 77d522d15158d9fe54c2509b8998227c97cbdcdb
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Aug 2 22:17:54 2016 +0200
Comment MDB_page
commit 8670805b4fb379d70dea0b94dd437238e8d694f6
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Aug 2 22:16:09 2016 +0200
Doc fixes: VALID_FLAGS, mm_last_pg, mt_loose_count
commit 58b0ce50b3a4d76dd0f5c1ed780a75db54549558
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Aug 2 21:04:17 2016 +0200
mdb_size comments
commit 4d47e89f4d4e4bacf2e58a420e3a2e84840fbe8e
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue Aug 2 21:02:35 2016 +0200
MDB_VL32: Switch to mdb_size_t formats PRIu64 & co
Drop macro Y=MDB_FMT_Y, add Yu/Yd=MDB_PRIy(). Replace
Y"d..." -> Yd"...", Y"u..." -> Yu"..." / MDB_SCNy(u)"...".
commit 65d9791ada4672d2c7fb93a65e0ce7a1e4474658
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jul 23 12:45:46 2016 +0200
Refactor mdb_page_get()
commit a43fcad8c65c2f4998a27d5596677dd81a42bd0f
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jul 23 12:43:16 2016 +0200
MDB_VL32: Match mdb_size_t type with format modifier.
When using format modifier "ll" or "I64", use the matching
type unsigned <long long / __int64> rather than uint64_t.
commit f25d716513944b667d430beece3d616d326e0cf2
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jul 23 12:18:01 2016 +0200
Fix MDB_INTEGERKEY doc of integer types
commit 0842f998ee49b7891483c601fc4f8ad7d83b30d3
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jul 23 12:17:04 2016 +0200
Use mdb_size_t for line numbers in mdb_load
This matches the mdb_size_t entry counts.
commit 12ad38d67f722d22a8ab3793dc2967d1247d3fea
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jul 23 12:16:20 2016 +0200
Fix size_t/formats -> mdb_size_t for MDB_VL32
commit dff8bafb36eef019b1b121eb10fbd259197fa01f
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jul 23 12:11:34 2016 +0200
Factor some MDB_VL32-related '#if's out to macros
Add MC_OVPG() + MC_SET_OVPG(), NEED_CMP_CLONG(), MDB_CURSOR_UNREF().
commit 32764bcb52e70588982d576cb16f435705c11279
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jul 23 12:08:12 2016 +0200
Factor out MDB_SIZE_MAX, MDB_FMT_Y, MDB_FMT_Z
commit 84610e65da85d483f9461b4bdc300a082f004de2
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Thu Jul 14 05:53:21 2016 +0200
Add error MDB_PROBLEM, replace some MDB_CORRUPTED
When problem is most likely in txn, not on disk.
commit 291c69ddbd593ce86c888718745f6d78f6bd7222
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Wed Jun 29 06:25:37 2016 +0200
ITS#8209 Tweak previous fixes
Some _aligned_malloc() doc seems to think arg NULL = user error.
Don't know if posix_memalign() pointer is defined after failure.
commit 5ea12b0be85ffe3be49692af90e24411c5b90655
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jun 25 07:57:04 2016 +0200
ITS#8209 MDB_CP_COMPACT: Handle empty or broken DB
Preserve DB flags (use metapage#1) when main DB is empty.
Fail if metapage root != actual root in output file.
commit eb7bbed967cd2a54d90d997e3470d02262baadb2
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sat Jun 25 07:55:34 2016 +0200
ITS#8209 MDB_CP_COMPACT fixes
Handle errors. Fix cond_wait condition so mc_new
is the sole control var. Drop specious cond_waits.
Do not look at 'mo' while copythr writes it.
commit c4c7833d245fdc4b2ea4a1a459d7069ce3af87f5
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Sun Jun 5 23:42:44 2016 +0200
mdb_env_setup_locks: Plug mutexattr leak on error
commit 53a0fdf1bee795048b3b3a40f8ffec3e3f8473a2
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Fri Jun 3 06:11:54 2016 +0200
Init "locked" flag for SysV semaphores
commit c367c1f69685a4d307acb8cea6945c1d67e1cc7e
Author: Howard Chu <hyc@openldap.org>
Date: Thu Jun 2 21:01:27 2016 +0100
ITS#8339 Solaris 10/11 robust mutex fixes
Check for PTHREAD_MUTEX_ROBUST_NP definition (this doesn't work
on Linux/glibc because they used an enum). Zero out mutex before
initing.
commit b045bce26037213f4f591787ac615a0463b031a8
Author: Howard Chu <hyc@openldap.org>
Date: Sun May 15 00:44:54 2016 +0100
ITS#8424 init cursor in mdb_env_cwalk
commit e2b8b6448de7de5229a44e18c224e3a670da4bdc
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Tue May 10 07:11:44 2016 +0200
Comment ovpage code in mdb_cursor_put()
commit a04aad31c248401694d49d4c041db26d8b7ac310
Author: Howard Chu <hyc@openldap.org>
Date: Tue Apr 26 12:52:21 2016 +0100
ITS#8412 fix NEXT_DUP after cursor_del
commit 37081325f7356587c5e6ce4c1f36c3b303fa718c
Author: Howard Chu <hyc@openldap.org>
Date: Mon Apr 18 18:07:56 2016 +0100
ITS#8406 fix xcursors after cursor_del
Don't leave them uninit'd if they now point at a valid DUP node
commit c8dbd772f751471fd2824bbb27ac9b8b392af465
Author: Howard Chu <hyc@openldap.org>
Date: Sat Apr 9 20:42:45 2016 +0100
mdb_drop optimization
If we know there are no sub-DBs and no overflow pages, skip leaf scan.
commit 8fff90db7ed1e650395f39f9e8b22673aa74aa2b
Author: Howard Chu <hyc@openldap.org>
Date: Mon Mar 28 01:35:56 2016 +0100
ITS#8393 fix MDB_GET_BOTH on non-dup record
commit e46d78b7b083c3a9983f8a0e77b90bccd64b6ec9
Author: Howard Chu <hyc@symas.com>
Date: Wed Feb 17 17:27:50 2016 +0000
MDB_VL32 - increase max write txn size
commit 3f62b727ccf3424daca1cdc24bbf98c869f44699
Author: Howard Chu <hyc@openldap.org>
Date: Tue Feb 16 23:34:27 2016 +0000
Tweak MDB_PREV_MULTIPLE for uninit'd cursor
commit d909ab2f36e079087047dd842210b37cec8b6a84
Author: Howard Chu <hyc@openldap.org>
Date: Mon Feb 15 00:07:04 2016 +0000
Tweak Win32 errmsg buffer
commit 5ef1908224121c01eb9190b03978d563cc0c22d2
Author: Howard Chu <hyc@openldap.org>
Date: Sun Feb 14 23:53:05 2016 +0000
ITS#8324 Map NTAPI result codes to WIN32 codes
commit fcac8d07742891cedcf94b982e5094315132f62a
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Thu Feb 4 03:23:13 2016 +0100
ITS#7992 Fix memleak in prev change
commit 5f5f4dab9c4f265c46d345cf69da984cd58eba0e
Author: Howard Chu <hyc@symas.com>
Date: Sat Jan 30 12:54:32 2016 +0000
Happy New Year
commit e394e023e491ca0338ad1f485fd70a9dd3790ed2
Author: Hallvard Furuseth <hallvard@openldap.org>
Date: Thu Jan 28 19:45:01 2016 +0100
Fix MDB_VL32 mdb_cursor_count()/entrycount types
commit 3f62ddc81c891f10c65b672e268ff2cb2b5fe228
Author: Howard Chu <hyc@openldap.org>
Date: Thu Jan 28 14:23:02 2016 +0000
MDB_VL32 change overflow page scan
Just check the requested page, don't worry about any other pages
commit 5bf313e820b8a6e122510e4571d9c6a3ec0136c1
Author: Howard Chu <hyc@openldap.org>
Date: Thu Jan 28 04:18:14 2016 +0000
ITS#8363 Fix off-by-one in mdb_midl_shrink
commit 6f653ca205d7358be7c639b8711492560de3de2a
Author: Howard Chu <hyc@openldap.org>
Date: Wed Jan 27 11:48:22 2016 +0000
MDB_VL32 more for 1ba5adb2ec262405f9207d6015d4f29eea548d25
fix 32bit overflow in set_mapsize
commit 8f88b1b0ba208c51da70736626aeeb5daac6e3f2
Author: Howard Chu <hyc@openldap.org>
Date: Tue Jan 26 22:13:01 2016 +0000
ITS#8324 fix a6ccef73ed288271f9b5871909d14a2e481c81ae
Removing the WRITEMAP test dropped this into the MDB_VL32 code path,
which was wrong.