Commit f779f74
feat ydb: extend ydb::CoordinationSession semaphore methods
Updated `ydb::CoordinationSession` semaphore methods (`CreateSemaphore`, `DeleteSemaphore`)
1) **CreateSemaphore**: Added `std::string_view data` argument (default is empty). Allows attaching [user-defined metadata](https://github.com/ydb-platform/ydb/blob/093a5c2d32357ce9957a4cf16c13cc36eb2b6c60/ydb/public/api/protos/ydb_coordination.proto#L264-L265) to the semaphore upon creation. [SDK method](https://github.com/ydb-platform/ydb-cpp-sdk/blob/e091a10085dff2c96f3c99641db83498e7fa2a09/include/ydb-cpp-sdk/client/coordination/coordination.h#L354-L355)
2) **DeleteSemaphore**: Added argument that enables [force deletion](https://github.com/ydb-platform/ydb/blob/093a5c2d32357ce9957a4cf16c13cc36eb2b6c60/ydb/public/api/protos/ydb_coordination.proto#L292-L293) of the semaphore. [SDK method](https://github.com/ydb-platform/ydb-cpp-sdk/blob/e091a10085dff2c96f3c99641db83498e7fa2a09/include/ydb-cpp-sdk/client/coordination/coordination.h#L360-L361)
---
Pull Request resolved: #1114
Co-authored-by: antoshkka <antoshkka@userver.tech>
commit_hash:a1f3a46cb7fa679dcda147f7e50f61c8cbf185e01 parent acafc42 commit f779f74
3 files changed
Lines changed: 46 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | | - | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
76 | 108 | | |
77 | 109 | | |
78 | 110 | | |
| |||
0 commit comments