Fossil SCM
minor doc clarification for the previous commit.
Commit
f42096f7ca1d57960a6f93fbd51112d359b0c3ef
Parent
70ea765873e3d53…
1 file changed
+3
-3
+3
-3
| --- src/json_wiki.c | ||
| +++ src/json_wiki.c | ||
| @@ -292,13 +292,13 @@ | ||
| 292 | 292 | blob_append(&content, cson_string_cstr(jstr),contentLen); |
| 293 | 293 | } |
| 294 | 294 | wiki_cmd_commit(zPageName, 0==rid, &content); |
| 295 | 295 | blob_reset(&content); |
| 296 | 296 | /* |
| 297 | - Our return value here has a race condition: if the page is saved | |
| 298 | - again before the next line finishes, payV could be the results | |
| 299 | - of the other save operation. | |
| 297 | + Our return value here has a race condition: if this operation | |
| 298 | + is called concurrently for the same wiki page via two requests, | |
| 299 | + payV could reflect the results of the other save operation. | |
| 300 | 300 | */ |
| 301 | 301 | payV = json_get_wiki_page_by_name( |
| 302 | 302 | cson_string_cstr( |
| 303 | 303 | cson_value_get_string(nameV)), |
| 304 | 304 | 0); |
| 305 | 305 |
| --- src/json_wiki.c | |
| +++ src/json_wiki.c | |
| @@ -292,13 +292,13 @@ | |
| 292 | blob_append(&content, cson_string_cstr(jstr),contentLen); |
| 293 | } |
| 294 | wiki_cmd_commit(zPageName, 0==rid, &content); |
| 295 | blob_reset(&content); |
| 296 | /* |
| 297 | Our return value here has a race condition: if the page is saved |
| 298 | again before the next line finishes, payV could be the results |
| 299 | of the other save operation. |
| 300 | */ |
| 301 | payV = json_get_wiki_page_by_name( |
| 302 | cson_string_cstr( |
| 303 | cson_value_get_string(nameV)), |
| 304 | 0); |
| 305 |
| --- src/json_wiki.c | |
| +++ src/json_wiki.c | |
| @@ -292,13 +292,13 @@ | |
| 292 | blob_append(&content, cson_string_cstr(jstr),contentLen); |
| 293 | } |
| 294 | wiki_cmd_commit(zPageName, 0==rid, &content); |
| 295 | blob_reset(&content); |
| 296 | /* |
| 297 | Our return value here has a race condition: if this operation |
| 298 | is called concurrently for the same wiki page via two requests, |
| 299 | payV could reflect the results of the other save operation. |
| 300 | */ |
| 301 | payV = json_get_wiki_page_by_name( |
| 302 | cson_string_cstr( |
| 303 | cson_value_get_string(nameV)), |
| 304 | 0); |
| 305 |