8000 Add artificial delay in DTMD · postgrespro/postgres_cluster@42c3a34 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 42c3a34

Browse files
committed
Add artificial delay in DTMD
1 parent b36fd91 commit 42c3a34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/multimaster/dtmd/src/server.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ static bool stream_flush(stream_t stream) {
174174
{
175175
struct timespec ts;
176176
ts.tv_sec = 0;
177-
ts.tv_nsec = 20000; /* 20usec */
177+
ts.tv_nsec = 10000; /* 10usec */
178+
nanosleep(&ts, NULL);
178179
nanosleep(&ts, NULL);
179180
}
180181
char *cursor = stream->output.data;

0 commit comments

Comments
 (0)
0