翻译或纠错本页面
- Reference >
- mongo Shell Methods >
- 分片方法 >
- sh._lastMigration()
sh._lastMigration()¶
On this page
Definition¶
Output¶
The sh._lastMigration() method returns a document with details about the last migration performed on the database or collection. The document contains the following output:
- sh._lastMigration._id¶
The id of the migration task.
- sh._lastMigration.server¶
The name of the server.
- sh._lastMigration.clientAddr¶
The IP address and port number of the server.
- sh._lastMigration.what¶
The specific type of migration.
- sh._lastMigration.details¶
A document containing details about the migrated chunk. The document includes min and max embedded documents with the bounds of the migrated chunk.