Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7340d1b

Browse files
committed
Doc fix for commit 7fa224b.
1 parent d7c26bb commit 7340d1b

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

readme.txt

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,20 @@ shardlord; he learns about them and starts the actual execution. At any time you
7676
can cancel currently executing command, just send SIGUSR1 to the shardlord. This
7777
is not yet implemented as a handy SQL function, but you can use cancel_cmd.sh
7878
script from bin/ directory. All submitted cmds return unique command id which is
79-
used to check the cmd status later by querying shardman.cmd_log and
80-
shardman.cmd_opts tables:
79+
used to check the cmd status later by querying shardman.cmd_log table:
8180

8281
CREATE TABLE cmd_log (
8382
id bigserial PRIMARY KEY,
8483
cmd_type cmd NOT NULL,
84+
cmd_opts TEXT[],
8585
status cmd_status DEFAULT 'waiting' NOT NULL
8686
);
87-
CREATE TABLE cmd_opts (
88-
id bigserial PRIMARY KEY,
89-
cmd_id bigint REFERENCES cmd_log(id),
90-
opt text
91-
);
9287

93-
We will unite them into convenient view someday. Commands status is enum with
94-
mostly obvious values ('waiting', 'canceled', 'failed', 'in progress',
95-
'success', 'done'). You might wonder what is the difference between 'success'
96-
and 'done'. We set the latter when the command is not atomic itself, but
97-
consists of several atomic steps, some of which were probably executed
98-
successfully and some failed.
88+
Commands status is enum with mostly obvious values ('waiting', 'canceled',
89+
'failed', 'in progress', 'success', 'done'). You might wonder what is the
90+
difference between 'success' and 'done'. We set the latter when the command is
91+
not atomic itself, but consists of several atomic steps, some of which were
92+
probably executed successfully and some failed.
9993

10094
Currently cmd_log can be seen and commands issued only on the shardlord, but
10195
that's easy to change.

0 commit comments

Comments
 (0)