This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module testlib [system] { | |
header "test-library-shim.h" | |
link "testlib" | |
export * | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongodb = require('mongodb'); | |
const MongoClient = mongodb.MongoClient; | |
const expect = require('chai').expect; | |
const MongoNetworkError = mongodb.MongoNetworkError; | |
const testContext = {}; | |
describe('Beta Examples (transactions)', function() { | |
before(function() { | |
testContext.url = 'mongodb://localhost:27017/test?replicaSet=rs0'; | |
return MongoClient.connect(testContext.url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongodb = require('mongodb'); | |
const MongoClient = mongodb.MongoClient; | |
const expect = require('chai').expect; | |
const MongoNetworkError = mongodb.MongoNetworkError; | |
const testContext = {}; | |
describe('Beta Examples (transactions)', function() { | |
before(function() { | |
testContext.url = 'mongodb://localhost:27017/test?replicaSet=rs0'; | |
return MongoClient.connect(testContext.url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function createCommandOptions(manager, localOptions) { | |
const options = Object.assign( | |
{ | |
host: 'defaultHost', | |
port: 27017, | |
connectionTimeoutMS: 5000, | |
socketTimeoutMS: 0, | |
pool: 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/mongo/transport/asio/asio_session_impl.cpp b/src/mongo/transport/asio/asio_session_impl.cpp | |
index dd0bef9f0a8..7a4bd6e4160 100644 | |
--- a/src/mongo/transport/asio/asio_session_impl.cpp | |
+++ b/src/mongo/transport/asio/asio_session_impl.cpp | |
@@ -46,6 +46,9 @@ | |
#include "mongo/util/net/socket_utils.h" | |
#include "mongo/util/signal_handlers_synchronous.h" | |
+#include "mongo/util/concurrency/ticketholder.h" | |
+#include "mongo/db/admission/ticketholder_manager.h" |
OlderNewer