Commit 768fcb4
authored
Create stream directories on startup (#153)
Create all the temporary directories on program startup.
Right now event writer simply creates the record file without
checking or creating the directories. This responsibility
should be delegated to startup sync where it creates all
the directories beforehand based on metadata available.
Startup sync now explicitly panics if create temporary
directory fails ( permission issues ) or moving some old
record file fails. This is because these operations are
essential for running the server and it saves users from
the confusion of why they cannot post any event.
Fixes #741 parent 172b295 commit 768fcb4
1 file changed
+3
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 111 | | |
117 | 112 | | |
118 | 113 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 114 | + | |
| 115 | + | |
127 | 116 | | |
128 | 117 | | |
129 | 118 | | |
| |||
162 | 151 | | |
163 | 152 | | |
164 | 153 | | |
165 | | - | |
| 154 | + | |
166 | 155 | | |
167 | 156 | | |
168 | 157 | | |
| |||
0 commit comments