From 55f27a783e9ae3a707d8bc17e89581f125fafc19 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Mon, 12 Aug 2019 01:40:22 +0300 Subject: [PATCH] [server] If using `index-all` we can close the CDB --- sources/cmd/server.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sources/cmd/server.go b/sources/cmd/server.go index 582b35c..b65b4ee 100644 --- a/sources/cmd/server.go +++ b/sources/cmd/server.go @@ -847,6 +847,14 @@ func main_0 () (error) { } } + if _indexPaths && _indexDataMeta && _indexDataContent { + if _error := _cdbReader.Close (); _error == nil { + _cdbReader = nil + } else { + AbortError (_error, "[d7aa79e1] failed closing archive!") + } + } + _server := & server { httpServer : nil,