@@ -32,7 +32,7 @@ struct SharedState {
32
32
sk : SafeKeeper < FileStorage > ,
33
33
/// For receiving-sending wal cooperation
34
34
/// quorum commit LSN we've notified walsenders about
35
- commit_lsn : Lsn ,
35
+ notified_commit_lsn : Lsn ,
36
36
/// combined hot standby feedback from all replicas
37
37
hs_feedback : HotStandbyFeedback ,
38
38
}
@@ -72,7 +72,7 @@ impl SharedState {
72
72
} ;
73
73
74
74
Ok ( Self {
75
- commit_lsn : Lsn ( 0 ) ,
75
+ notified_commit_lsn : Lsn ( 0 ) ,
76
76
sk : SafeKeeper :: new ( Lsn ( flush_lsn) , tli, storage, state) ,
77
77
hs_feedback : HotStandbyFeedback {
78
78
ts : 0 ,
@@ -186,7 +186,7 @@ impl Timeline {
186
186
pub fn wait_for_lsn ( & self , lsn : Lsn ) -> Lsn {
187
187
let mut shared_state = self . mutex . lock ( ) . unwrap ( ) ;
188
188
loop {
189
- let commit_lsn = shared_state. commit_lsn ;
189
+ let commit_lsn = shared_state. notified_commit_lsn ;
190
190
// This must be `>`, not `>=`.
191
191
if commit_lsn > lsn {
192
192
return commit_lsn;
@@ -198,8 +198,8 @@ impl Timeline {
198
198
// Notify caught-up WAL senders about new WAL data received
199
199
pub fn notify_wal_senders ( & self , commit_lsn : Lsn ) {
200
200
let mut shared_state = self . mutex . lock ( ) . unwrap ( ) ;
201
- if shared_state. commit_lsn < commit_lsn {
202
- shared_state. commit_lsn = commit_lsn;
201
+ if shared_state. notified_commit_lsn < commit_lsn {
202
+ shared_state. notified_commit_lsn = commit_lsn;
203
203
self . cond . notify_all ( ) ;
204
204
}
205
205
}
0 commit comments