diff options
author | Jason Carey <jcarey@argv.me> | 2017-09-20 17:50:18 -0400 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2017-10-03 18:44:26 -0400 |
commit | 3805ccdc25facfe536302321ee4fb485f7030d0c (patch) | |
tree | 67eef6bff793cd246e42a415f2ed8393a4bbd620 /src/mongo/db/generic_cursor.idl | |
parent | 4c979fe564f6c6e1081af495eba421d10ae0d086 (diff) | |
download | mongo-3805ccdc25facfe536302321ee4fb485f7030d0c.tar.gz |
SERVER-31289 Add test only $listLocalCursors
In order to make the kill sessions test a bit more reliable, adding a
test only agg stage that returns minimal info about cursors. That way
we can see if we killed our specific cursors, rather than looking at
global counts.
Diffstat (limited to 'src/mongo/db/generic_cursor.idl')
-rw-r--r-- | src/mongo/db/generic_cursor.idl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mongo/db/generic_cursor.idl b/src/mongo/db/generic_cursor.idl new file mode 100644 index 00000000000..f1359c8f2b8 --- /dev/null +++ b/src/mongo/db/generic_cursor.idl @@ -0,0 +1,35 @@ +# Copyright (C) 2017 MongoDB Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License, version 3, +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +# This IDL file describes the BSON format for a GenericCursor, and +# handles the serialization to and deserialization from its BSON representation +# for that class. + +global: + cpp_namespace: "mongo" + +imports: + - "mongo/db/logical_session_id.idl" + - "mongo/idl/basic_types.idl" + +structs: + GenericCursor: + description: "A struct representing a cursor in either mongod or mongos" + fields: + id: long + ns: namespacestring + lsid: + type: LogicalSessionId + optional: true |