Skip to content

Commit ac465ba

Browse files
committed
Modify variable name
Signed-off-by: Sooraj Sinha <[email protected]>
1 parent e7bc511 commit ac465ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateAttributesManager.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,19 @@ public CheckedRunnable<IOException> getAsyncMetadataReadAction(
130130
public DiffableUtils.MapDiff<String, ClusterState.Custom, Map<String, ClusterState.Custom>> getUpdatedCustoms(
131131
ClusterState clusterState,
132132
ClusterState previousClusterState,
133-
boolean isWriteFull,
134-
boolean firstUploadForEphemeralMetadata
133+
boolean isRemotePublicationEnabled,
134+
boolean isFirstUpload
135135
) {
136-
if (!isWriteFull) {
137-
// When isWriteFull is false, we do not want store any custom objects
136+
if (!isRemotePublicationEnabled) {
137+
// When isRemotePublicationEnabled is false, we do not want store any custom objects
138138
return DiffableUtils.diff(
139139
Collections.emptyMap(),
140140
Collections.emptyMap(),
141141
DiffableUtils.getStringKeySerializer(),
142142
NonDiffableValueSerializer.getAbstractInstance()
143143
);
144144
}
145-
if (firstUploadForEphemeralMetadata) {
145+
if (isFirstUpload) {
146146
// For first upload of ephemeral metadata, we want to upload all customs
147147
return DiffableUtils.diff(
148148
Collections.emptyMap(),

0 commit comments

Comments
 (0)