summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.go b/init.go
index 639a78b..97a998c 100644
--- a/init.go
+++ b/init.go
@@ -214,7 +214,9 @@ func initTemplates() *template.Template {
 
 // Pull DB data into cache, if available.
 func initDatabase() {
+	confObj.mu.RLock()
 	db, err := leveldb.OpenFile(confObj.dbPath, nil)
+	confObj.mu.RUnlock()
 	if err != nil {
 		log.Fatalf("%v\n", err)
 	}
gt; 2023-10-28 21:46:34 +0100 Update' href='/crystal/www/commit/src/org/index.org?id=477421030a1ea4ac4c1c2cfa7e1ded12b70f45a7'>4774210 ^
a565af2
4774210 ^
a565af2




0a559dc ^

a565af2

a565af2


















252ba21 ^
a565af2








4774210 ^
a565af2

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