Commit fff74137 authored by Lucas Fernandes de Oliveira's avatar Lucas Fernandes de Oliveira

Merge branch 'issue/15' into 'master'

Issue #14: Fix named pipe on create task

See merge request !18
parents 26001904 de3b7331
Pipeline #21057 passed with stage
in 1 minute and 5 seconds
......@@ -21,14 +21,13 @@ createDB() {
# Create transactions files
beginTrans > "$tmpWS/begin.sql"
commitTrans > "$tmpWS/commit.sql"
mkfifo "$tmpWS/trans.fifo"
touch $tmpWS/error.out
# Concats the transaction and schema files
cat "$tmpWS/begin.sql"\
> "$tmpWS/trans.fifo" &
> "$tmpWS/trans.fifo"
# Performs schema creation. As is in a transaction if fails it will
# NOT leave the database inconsistent.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment