Skip to content

Commit 9dce7dd

Browse files
authored
Release v1.5.3 (#232)
Maintenance release. No significant groundbreaking changes, most notably this bumps the base image to a supported linux distribution
1 parent 8ac9f43 commit 9dce7dd

File tree

12 files changed

+24
-83
lines changed

12 files changed

+24
-83
lines changed

.github/workflows/build_deb.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.9)
22
project(
33
ursadb
4-
VERSION 1.5.2
4+
VERSION 1.5.3
55
LANGUAGES CXX C
66
)
77

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
FROM debian:buster AS build
1+
FROM debian:bookworm AS build
22

3-
RUN apt update \
4-
&& apt install -y gcc-7 g++-7 libzmq3-dev cmake build-essential git
3+
RUN apt update && apt install -y gcc g++ libzmq3-dev cmake build-essential git
54

65
RUN mkdir src && mkdir src/build
76
COPY . src/
87
WORKDIR /src/build
9-
RUN cmake -D CMAKE_CXX_COMPILER=/usr/bin/g++-7 -D CMAKE_BUILD_TYPE=Release .. && make -j$(nproc)
8+
RUN cmake -D CMAKE_BUILD_TYPE=Release .. && make -j$(nproc)
109

11-
FROM debian:buster
10+
FROM debian:bullseye
1211

1312
COPY --from=build /src/build/ursadb /usr/bin/ursadb
1413
COPY --from=build /src/build/ursadb_new /usr/bin/ursadb_new
1514
COPY --from=build /src/build/ursadb_bench /usr/bin/ursadb_bench
1615
COPY --from=build /src/build/ursadb_test /usr/bin/ursadb_test
1716
COPY --from=build /src/build/ursacli /usr/bin/ursacli
18-
17+
COPY --from=build /src/build/ursadb_trim /usr/bin/ursadb_trim
1918
COPY entrypoint.sh /entrypoint.sh
2019

2120
RUN mkdir /var/lib/ursadb \

docs/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ git clone --recurse-submodules https://github.com/CERT-Polska/ursadb.git
2727
2. Install necessary dependencies:
2828
```
2929
sudo apt update
30-
sudo apt install -y gcc-7 g++-7 libzmq3-dev cmake build-essential clang-format git
30+
sudo apt install -y gcc g++ libzmq3-dev cmake build-essential clang-format git
3131
```
3232

3333
3. Build project:
3434
```
3535
mkdir build
3636
cd build
37-
cmake -D CMAKE_C_COMPILER=gcc-7 -D CMAKE_CXX_COMPILER=g++-7 -D CMAKE_BUILD_TYPE=Release ..
37+
cmake -D CMAKE_BUILD_TYPE=Release ..
3838
make -j$(nproc)
3939
```
4040

docs/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Multiple paths can be specified at once:
7777
index "/opt/something" "/opt/foobar";
7878
```
7979

80-
By default, `gram3` index will be used (this is probably [not what you want](./indextypes.md). Index types may be specified manually:
80+
By default, `gram3` index will be used (this is probably [not what you want](./indextypes.md)). Index types may be specified manually:
8181

8282
```
8383
index "/opt/something" with [gram3, text4, hash4, wide8];

extern/spdlog

Submodule spdlog updated 191 files

libursa/Daemon.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ Response dispatch_command_safe(const std::string &cmd_str, Task *task,
235235
} catch (const std::bad_alloc &e) {
236236
spdlog::error("Task {} failed: out of memory!", task->spec().id());
237237
return Response::error("out of memory");
238+
} catch (...) {
239+
spdlog::error("Task {} failed: unexpected fatal error.",
240+
task->spec().id());
241+
return Response::error("unexpected error");
238242
}
239243
}
240244

libursa/Database.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class Database {
4040

4141
const fs::path &get_name() const { return db_name; };
4242
const fs::path &get_base() const { return db_base; };
43-
const std::unordered_map<uint64_t, std::unique_ptr<TaskSpec>>
44-
&current_tasks() {
43+
const std::unordered_map<uint64_t, std::unique_ptr<TaskSpec>> &
44+
current_tasks() {
4545
return tasks;
4646
}
4747
void commit_task(const TaskSpec &spec,

libursa/OnDiskDataset.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "Json.h"
1010
#include "Query.h"
1111
#include "QueryOptimizer.h"
12-
#include "spdlog/fmt/ostr.h"
1312
#include "spdlog/spdlog.h"
1413

1514
void OnDiskDataset::save() {
@@ -101,7 +100,6 @@ void OnDiskDataset::execute(const Query &query, ResultWriter *out,
101100
}
102101
Query plan = query.plan(types_to_query);
103102
plan = q_optimize(std::move(plan));
104-
spdlog::debug("PLAN: {}", plan);
105103

106104
QueryResult result = this->query(plan, counters);
107105
if (result.is_everything()) {

libursa/Query.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void Query::prefetch(int from_index, int howmany, bool only_last,
234234
QueryResult Query::run(const QueryPrimitive &primitive,
235235
const PrefetchFunc &prefetcher,
236236
QueryCounters *counters) const {
237-
// Case: primitive query - reduces to AND with tokens from query plan.
237+
// Case: primitive query - just return results for a given ngram.
238238
if (type == QueryType::PRIMITIVE) {
239239
return primitive(ngram, counters);
240240
}

0 commit comments

Comments
 (0)