@@ -240,7 +240,6 @@ public SnapshotStats getStats() {
240240 private static final String STATE = "state" ;
241241 private static final String INDICES = "indices" ;
242242 private static final String INCLUDE_GLOBAL_STATE = "include_global_state" ;
243- private static final String INITIAL_TOTAL_SIZE_IN_BYTES = "initial_total_size_in_bytes" ;
244243
245244 @ Override
246245 public XContentBuilder toXContent (XContentBuilder builder , Params params ) throws IOException {
@@ -252,9 +251,6 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
252251 if (includeGlobalState != null ) {
253252 builder .field (INCLUDE_GLOBAL_STATE , includeGlobalState );
254253 }
255- if (initialTotalSizeInBytes != 0 ) {
256- builder .field (INITIAL_TOTAL_SIZE_IN_BYTES , initialTotalSizeInBytes );
257- }
258254 builder .field (SnapshotShardsStats .Fields .SHARDS_STATS , shardsStats , params );
259255 builder .field (SnapshotStats .Fields .STATS , stats , params );
260256 builder .startObject (INDICES );
@@ -276,7 +272,6 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
276272 String uuid = (String ) parsedObjects [i ++];
277273 String rawState = (String ) parsedObjects [i ++];
278274 Boolean includeGlobalState = (Boolean ) parsedObjects [i ++];
279- Long initialTotalSizeInBytes = (Long ) parsedObjects [i ++];
280275 SnapshotStats stats = ((SnapshotStats ) parsedObjects [i ++]);
281276 SnapshotShardsStats shardsStats = ((SnapshotShardsStats ) parsedObjects [i ++]);
282277 @ SuppressWarnings ("unchecked" )
@@ -297,16 +292,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
297292 shards .addAll (index .getShards ().values ());
298293 }
299294 }
300- return new SnapshotStatus (
301- snapshot ,
302- state ,
303- shards ,
304- indicesStatus ,
305- shardsStats ,
306- stats ,
307- includeGlobalState ,
308- initialTotalSizeInBytes
309- );
295+ return new SnapshotStatus (snapshot , state , shards , indicesStatus , shardsStats , stats , includeGlobalState , 0L );
310296 }
311297 );
312298 static {
@@ -315,7 +301,6 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
315301 PARSER .declareString (constructorArg (), new ParseField (UUID ));
316302 PARSER .declareString (constructorArg (), new ParseField (STATE ));
317303 PARSER .declareBoolean (optionalConstructorArg (), new ParseField (INCLUDE_GLOBAL_STATE ));
318- PARSER .declareLong (optionalConstructorArg (), new ParseField (INITIAL_TOTAL_SIZE_IN_BYTES ));
319304 PARSER .declareField (
320305 constructorArg (),
321306 SnapshotStats ::fromXContent ,
0 commit comments