Skip to content

Commit f12d54b

Browse files
committed
Merge remote-tracking branch 'origin/master' into 1.2.0-dev
* origin/master: 1.1.11 Release CDRIVER-875 fix writev_full error format CDRIVER-875 test_stream_writev_full, better errors fix test_command_fq for recent mongos copy orchestration_configs/ from 1.2.0-dev copy .mci.yml from 1.2.0-dev CDRIVER-843: Add a test for flooding sendv() CDRIVER-843 & CDRIVER-756: Incorrect error checking CDRIVER-826: Improve errno handling CDRIVER-756: TRACE the errno, in case it is something, just not 'EGAIN' CDRIVER-826: Handle WSAEMSGSIZE CDRIVER-756: Improve debugging CDRIVER-732: Allow passing test arguments to debug test runs CDRIVER-756: Unchecked errors on failed network writes edits .gitmodules, fixes libbson url B-0 fixed seek method. Bad interpretation of seek_end mode. it should seek from one byte more than number of bytes written. seek_end with offset zero should put pointer exactly at the end ready to receive more data CDRIVER-771: Obsolete language needs updating Conflicts: .mci.yml CMakeLists.txt README.rst build/autotools/Versions.m4 doc/installing.page src/libbson src/mongoc/mongoc-cluster.c src/mongoc/mongoc-socket-private.h src/mongoc/mongoc-socket.c src/mongoc/mongoc-stream-tls.c src/mongoc/mongoc-stream.c src/mongoc/mongoc-trace.h tests/test-mongoc-stream.c
2 parents 67997e6 + df4d1f3 commit f12d54b

File tree

11 files changed

+57
-25
lines changed

11 files changed

+57
-25
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "src/libbson"]
22
path = src/libbson
3-
url = git://github.com/mongodb/libbson.git
3+
url = https://github.com/mongodb/libbson.git

NEWS

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,28 @@ Peace,
110110

111111
A. Jesse Jiryu Davis
112112

113+
It is my pleasure to announce to you the MongoDB C driver 1.1.11.
114+
115+
This is a patch release with bug fixes:
116+
117+
* Undetected network errors when sending messages to the server
118+
* Off-by-one error in mongoc_gridfs_file_seek with mode SEEK_END
119+
* Memory leak parsing a URI that contains an invalid option
120+
* The libbson submodule's URL now uses the recommended https://, not git://
121+
122+
Thanks to everyone who contributed to the development of this point release for
123+
libmongoc.
124+
125+
* A. Jesse Jiryu Davis
126+
* Hannes Magnusson
127+
* Jason Carey
128+
* Jose Sebastian Battig
129+
* rubicks
130+
131+
Peace,
132+
133+
A. Jesse Jiryu Davis
134+
113135
mongo-c-driver 1.1.10
114136
=====================
115137

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ the `mongodb-user list`_ to ask for help. Please include in your email all of th
4444
information:
4545

4646
- The version of the driver you are trying to build (branch or tag).
47-
- Examples: master branch, 1.0.2 tag
47+
- Examples: master branch, 1.1.11 tag
4848
- Host OS, version, and architecture.
4949
- Examples: Windows 8 64-bit x86, Ubuntu 12.04 32-bit x86, OS X Mavericks
5050
- C Compiler and version.
@@ -59,7 +59,7 @@ communications to ascertain the necessary details, delaying a useful response.
5959
Here is a made-up example of a help request that provides the relevant
6060
information:
6161

62-
Hello, I'm trying to build the C driver with SSL, from mongo-c-driver-1.2.0.tar.gz. I'm on Ubuntu
62+
Hello, I'm trying to build the C driver with SSL, from mongo-c-driver-1.1.11.tar.gz. I'm on Ubuntu
6363
14.04, 64-bit Intel, with gcc 4.8.2. I run configure like::
6464

6565
$ ./configure --enable-sasl=yes

build/rpm/mongo-c-driver.spec

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# norootforbuild
22

33
%define DriverName mongo-c-driver
4-
%define DriverVersion 1.1.10
4+
%define DriverVersion 1.1.11
55
%define BsonName libbson
6-
%define BsonVersion 1.1.10
6+
%define BsonVersion 1.1.11
77

88
Name: %{DriverName}
99
Version: %{DriverVersion}
@@ -117,6 +117,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
117117

118118

119119
%changelog -n %{DriverName}
120+
* Wed September 23 2015 A. Jesse Jiryu Davis <[email protected]> - 1.1.11-1
121+
- Release 1.1.11
122+
120123
* Tue July 21 2015 A. Jesse Jiryu Davis <[email protected]> - 1.1.10-1
121124
- Release 1.1.10
122125

@@ -194,6 +197,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
194197

195198

196199
%changelog -n %{BsonName}
200+
* Wed September 23 2015 A. Jesse Jiryu Davis <[email protected]> - 1.1.11-1
201+
- Release 1.1.11
202+
197203
* Tue July 21 2015 A. Jesse Jiryu Davis <[email protected]> - 1.1.10-1
198204
- Release 1.1.10
199205

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
mongo-c-driver (1.1.11-0) unstable; urgency=low
2+
3+
* Release 1.1.11
4+
5+
-- A. Jesse Jiryu Davis <[email protected]> Wed, 23 September 2015 12:00:00 -0400
6+
17
mongo-c-driver (1.1.10-0) unstable; urgency=low
28

39
* Release 1.1.10

doc/installing.page

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858

5959
<p>The following instructions are for UNIX-like systems such as GNU/Linux, FreeBSD, and Solaris. To build on Windows, see the instructions for <link xref="installing#building-windows">Building on Windows</link>.</p>
6060

61-
<p>The most recent release of libmongoc is 1.1.10 and can be <link href="https://github.com/mongodb/mongo-c-driver/releases/download/1.1.10/mongo-c-driver-1.1.10.tar.gz">downloaded here</link>. The following snippet will download and extract the current release of the driver.</p>
61+
<p>The most recent release of libmongoc is 1.1.11 and can be <link href="https://github.com/mongodb/mongo-c-driver/releases/download/1.1.11/mongo-c-driver-1.1.11.tar.gz">downloaded here</link>. The following snippet will download and extract the current release of the driver.</p>
6262

63-
<screen><output style="prompt">$ </output><input>wget https://github.com/mongodb/mongo-c-driver/releases/download/1.1.10/mongo-c-driver-1.1.10.tar.gz</input>
64-
<output style="prompt">$ </output><input>tar -xzf mongo-c-driver-1.1.10.tar.gz</input>
65-
<output style="prompt">$ </output><input>cd mongo-c-driver-1.1.10/</input></screen>
63+
<screen><output style="prompt">$ </output><input>wget https://github.com/mongodb/mongo-c-driver/releases/download/1.1.11/mongo-c-driver-1.1.11.tar.gz</input>
64+
<output style="prompt">$ </output><input>tar -xzf mongo-c-driver-1.1.11.tar.gz</input>
65+
<output style="prompt">$ </output><input>cd mongo-c-driver-1.1.11/</input></screen>
6666

6767
<p>Minimal dependencies are needed to build the MongoDB C driver. Optionally, if you want Kerberos (GSSAPI) or SSL support, you need to install <code>libsasl2</code> and <code>OpenSSL</code> libraries and development headers respectively.</p>
6868

@@ -138,9 +138,9 @@ Install man pages : yes
138138
<p>The following commands will download the most recent MongoDB binary release and install it using the <code>pkgadd</code> command on Solaris 10.</p>
139139
<screen><output style="prompt">$ </output><input>bash</input>
140140
<output style="prompt">bash-3.2$ </output><input>export ARCH=`uname -m`</input>
141-
<output style="prompt">bash-3.2$ </output><input>/usr/sfw/bin/wget --no-check-certificate "https://github.com/mongodb/mongo-c-driver/releases/download/1.1.10/mongo-c-driver-1.1.10.${ARCH}.pkg.tar.gz"</input>
142-
<output style="prompt">bash-3.2$ </output><input>gunzip -c "mongo-c-driver-1.1.10.${ARCH}.pkg.tar.gz" | tar -xf -</input>
143-
<output style="prompt">bash-3.2$ </output><input>pkgadd -d . mongo-c-driver</input></screen>
141+
<output style="prompt">bash-3.2$ </output><input>/usr/sfw/bin/wget --no-check-certificate "https://github.com/mongodb/mongo-c-driver/releases/download/1.1.11/MONGOmongo-c-driver-1.1.11.${ARCH}.pkg.tar.gz"</input>
142+
<output style="prompt">bash-3.2$ </output><input>gunzip -c "MONGOmongo-c-driver-1.1.11.${ARCH}.pkg.tar.gz" | tar -xf -</input>
143+
<output style="prompt">bash-3.2$ </output><input>pkgadd -d . MONGOmongo-c-driver</input></screen>
144144

145145
</section>
146146

@@ -151,7 +151,7 @@ Install man pages : yes
151151

152152
<p>Let's start by generating Visual Studio project files for libbson, a dependency of the C driver. The following assumes we are compiling for 64-bit Windows using Visual Studio 2010 Express which can be freely downloaded from Microsoft.</p>
153153

154-
<screen>cd mongo-c-driver-1.1.10\src\libbson
154+
<screen>cd mongo-c-driver-1.1.11\src\libbson
155155
cmake -G "Visual Studio 10 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver"</screen>
156156

157157
<p>Now that we have project files generated, we can either open the project in Visual Studio or compile from the command line. Let's build using the command line program <code>msbuild.exe</code></p>
@@ -166,7 +166,7 @@ cmake -G "Visual Studio 10 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver"</sc
166166

167167
<p>Now let's do the same for the MongoDB C driver.</p>
168168

169-
<screen>cd mongo-c-driver-1.1.10
169+
<screen>cd mongo-c-driver-1.1.11
170170
cmake -G "Visual Studio 2010 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver" "-DBSON_ROOT_DIR=C:\mongo-c-driver"
171171
msbuild.exe ALL_BUILD.vcxproj
172172
msbuild.exe INSTALL.vcxproj</screen>

doc/mongoc_version.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
#define MONGOC_MAJOR_VERSION (1)
1919
#define MONGOC_MINOR_VERSION (1)
20-
#define MONGOC_MICRO_VERSION (10)
21-
#define MONGOC_VERSION_S "1.1.10"
20+
#define MONGOC_MICRO_VERSION (11)
21+
#define MONGOC_VERSION_S "1.1.11"
2222
#define MONGOC_VERSION_HEX ((1 << 24) | (0 << 16) | (0 << 8) | 0)
2323
#define MONGOC_CHECK_VERSION(major, minor, micro)
2424
]]></screen>

src/mongoc/mongoc-cluster.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ _mongoc_cluster_run_ismaster (mongoc_cluster_t *cluster,
269269
return false;
270270
}
271271

272+
272273
/*
273274
*--------------------------------------------------------------------------
274275
*
@@ -2293,6 +2294,7 @@ mongoc_cluster_sendv_to_server (mongoc_cluster_t *cluster,
22932294
gle.query.response_to = 0;
22942295
gle.query.opcode = MONGOC_OPCODE_QUERY;
22952296
gle.query.flags = MONGOC_QUERY_NONE;
2297+
22962298
switch (rpcs[i].header.opcode) {
22972299
case MONGOC_OPCODE_INSERT:
22982300
DB_AND_CMD_FROM_COLLECTION(cmdname, rpcs[i].insert.collection);
@@ -2308,6 +2310,7 @@ mongoc_cluster_sendv_to_server (mongoc_cluster_t *cluster,
23082310
DB_AND_CMD_FROM_COLLECTION(cmdname, "admin.$cmd");
23092311
break;
23102312
}
2313+
23112314
gle.query.collection = cmdname;
23122315
gle.query.skip = 0;
23132316
gle.query.n_return = 1;

src/mongoc/mongoc-gridfs-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ mongoc_gridfs_file_seek (mongoc_gridfs_file_t *file,
709709
offset = file->pos + delta;
710710
break;
711711
case SEEK_END:
712-
offset = (file->length - 1) + delta;
712+
offset = file->length + delta;
713713
break;
714714
default:
715715
errno = EINVAL;

src/mongoc/mongoc-stream-tls.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
#define MONGOC_STREAM_TLS_BUFFER_SIZE 4096
4646

47+
4748
/**
4849
* mongoc_stream_tls_t:
4950
*
@@ -533,15 +534,10 @@ _mongoc_stream_tls_write (mongoc_stream_tls_t *tls,
533534
}
534535
}
535536

536-
if (ret <= 0 && BIO_should_retry (tls->bio)) {
537-
if (tls->timeout_msec > 0) {
538-
TRACE("I do have %dmsec left", tls->timeout_msec);
539-
}
540-
}
541-
542537
RETURN (ret);
543538
}
544539

540+
545541
/*
546542
*--------------------------------------------------------------------------
547543
*
@@ -667,9 +663,7 @@ _mongoc_stream_tls_writev (mongoc_stream_t *stream,
667663
if (buf_head != buf_tail) {
668664
/* If we have any bytes buffered, send */
669665

670-
TRACE("buffered writing %ld", buf_tail - buf_head);
671666
child_ret = _mongoc_stream_tls_write (tls, buf_head, buf_tail - buf_head);
672-
TRACE("Got %ld written", child_ret);
673667

674668
if (child_ret < 0) {
675669
RETURN (child_ret);

0 commit comments

Comments
 (0)