Skip to content

Commit 065e58f

Browse files
authored
PHPC-2699: Rename durationMicros properties (#1991)
1 parent 09c56d6 commit 065e58f

18 files changed

Lines changed: 46 additions & 46 deletions

src/MongoDB/Monitoring/CommandFailedEvent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void phongo_commandfailedevent_update_properties(phongo_commandfailedeven
172172
zend_update_property_long(phongo_commandfailedevent_ce, &intern->std, ZEND_STRL("port"), intern->host.port);
173173
zend_update_property_string(phongo_commandfailedevent_ce, &intern->std, ZEND_STRL("commandName"), intern->command_name);
174174
zend_update_property_string(phongo_commandfailedevent_ce, &intern->std, ZEND_STRL("databaseName"), intern->database_name);
175-
zend_update_property_long(phongo_commandfailedevent_ce, &intern->std, ZEND_STRL("durationMicros"), intern->duration_micros);
175+
zend_update_property_long(phongo_commandfailedevent_ce, &intern->std, ZEND_STRL("duration"), intern->duration_micros);
176176
zend_update_property(phongo_commandfailedevent_ce, &intern->std, ZEND_STRL("error"), &intern->z_error);
177177

178178
if (phongo_bson_to_zval_ex(intern->reply, &reply_state)) {

src/MongoDB/Monitoring/CommandFailedEvent.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class CommandFailedEvent
1414
public readonly int $port;
1515
public readonly string $commandName;
1616
public readonly string $databaseName;
17-
public readonly int $durationMicros;
17+
public readonly int $duration;
1818
public readonly \Exception $error;
1919
public readonly object $reply;
2020
public readonly string $operationId;

src/MongoDB/Monitoring/CommandFailedEvent_arginfo.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MongoDB/Monitoring/CommandSucceededEvent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static void phongo_commandsucceededevent_update_properties(phongo_commandsucceed
162162
zend_update_property_long(phongo_commandsucceededevent_ce, &intern->std, ZEND_STRL("port"), intern->host.port);
163163
zend_update_property_string(phongo_commandsucceededevent_ce, &intern->std, ZEND_STRL("commandName"), intern->command_name);
164164
zend_update_property_string(phongo_commandsucceededevent_ce, &intern->std, ZEND_STRL("databaseName"), intern->database_name);
165-
zend_update_property_long(phongo_commandsucceededevent_ce, &intern->std, ZEND_STRL("durationMicros"), intern->duration_micros);
165+
zend_update_property_long(phongo_commandsucceededevent_ce, &intern->std, ZEND_STRL("duration"), intern->duration_micros);
166166

167167
if (phongo_bson_to_zval_ex(intern->reply, &reply_state)) {
168168
zend_update_property(phongo_commandsucceededevent_ce, &intern->std, ZEND_STRL("reply"), &reply_state.zchild);

src/MongoDB/Monitoring/CommandSucceededEvent.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class CommandSucceededEvent
1414
public readonly int $port;
1515
public readonly string $commandName;
1616
public readonly string $databaseName;
17-
public readonly int $durationMicros;
17+
public readonly int $duration;
1818
public readonly object $reply;
1919
public readonly string $operationId;
2020
public readonly string $requestId;

src/MongoDB/Monitoring/CommandSucceededEvent_arginfo.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static void phongo_serverheartbeatfailedevent_update_properties(phongo_serverhea
8181
zend_update_property_string(phongo_serverheartbeatfailedevent_ce, &intern->std, ZEND_STRL("host"), intern->host.host);
8282
zend_update_property_long(phongo_serverheartbeatfailedevent_ce, &intern->std, ZEND_STRL("port"), intern->host.port);
8383
zend_update_property_bool(phongo_serverheartbeatfailedevent_ce, &intern->std, ZEND_STRL("awaited"), intern->awaited);
84-
zend_update_property_long(phongo_serverheartbeatfailedevent_ce, &intern->std, ZEND_STRL("durationMicros"), intern->duration_micros);
84+
zend_update_property_long(phongo_serverheartbeatfailedevent_ce, &intern->std, ZEND_STRL("duration"), intern->duration_micros);
8585
zend_update_property(phongo_serverheartbeatfailedevent_ce, &intern->std, ZEND_STRL("error"), &intern->z_error);
8686
}
8787

src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ final class ServerHeartbeatFailedEvent
1313
public readonly string $host;
1414
public readonly int $port;
1515
public readonly bool $awaited;
16-
public readonly int $durationMicros;
16+
public readonly int $duration;
1717
public readonly \Exception $error;
1818

1919
final private function __construct() {}

src/MongoDB/Monitoring/ServerHeartbeatFailedEvent_arginfo.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static void phongo_serverheartbeatsucceededevent_update_properties(phongo_server
9393
zend_update_property_string(phongo_serverheartbeatsucceededevent_ce, &intern->std, ZEND_STRL("host"), intern->host.host);
9494
zend_update_property_long(phongo_serverheartbeatsucceededevent_ce, &intern->std, ZEND_STRL("port"), intern->host.port);
9595
zend_update_property_bool(phongo_serverheartbeatsucceededevent_ce, &intern->std, ZEND_STRL("awaited"), intern->awaited);
96-
zend_update_property_long(phongo_serverheartbeatsucceededevent_ce, &intern->std, ZEND_STRL("durationMicros"), intern->duration_micros);
96+
zend_update_property_long(phongo_serverheartbeatsucceededevent_ce, &intern->std, ZEND_STRL("duration"), intern->duration_micros);
9797

9898
if (phongo_bson_to_zval_ex(intern->reply, &reply_state)) {
9999
zend_update_property(phongo_serverheartbeatsucceededevent_ce, &intern->std, ZEND_STRL("reply"), &reply_state.zchild);

0 commit comments

Comments
 (0)