From: Steve Dickson <SteveD@redhat.com>
To: Jeff Layton <jlayton@primarydata.com>
Cc: bfields@fieldses.org, linux-nfs@vger.kernel.org
Subject: Re: [PATCH v4 3/7] nfsdcltrack: rename CLD_* constants with CLTRACK_* prefixes
Date: Fri, 19 Sep 2014 09:26:58 -0400 [thread overview]
Message-ID: <541C2F22.1030002@RedHat.com> (raw)
In-Reply-To: <1410789665-19745-4-git-send-email-jlayton@primarydata.com>
This patch does not compile do to the following errors:
http://fpaste.org/134872/41113211/
With s/CLTRACK_SQLITE_LATEST_SCHEMA_VERSION/CLTRACK_SQLITE_CURRENT_SCHEMA_VERSION/s
But this causes the 4 patch not to compile because CLTRACK_SQLITE_LATEST_SCHEMA_VERSION
is not defined...
Please straight this out, retest and resubmit!
steved.
On 09/15/2014 10:01 AM, Jeff Layton wrote:
> From: Jeff Layton <jlayton@poochiereds.net>
>
> Since nfsdcld has been dead for a few years now, clean up the prefixes
> on the constants.
>
> Signed-off-by: Jeff Layton <jlayton@primarydata.com>
> ---
> utils/nfsdcltrack/sqlite.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/utils/nfsdcltrack/sqlite.c b/utils/nfsdcltrack/sqlite.c
> index 352f029d55c0..52fcaa4d7ca3 100644
> --- a/utils/nfsdcltrack/sqlite.c
> +++ b/utils/nfsdcltrack/sqlite.c
> @@ -50,10 +50,10 @@
>
> #include "xlog.h"
>
> -#define CLD_SQLITE_SCHEMA_VERSION 1
> +#define CLTRACK_SQLITE_LATEST_SCHEMA_VERSION 1
>
> /* in milliseconds */
> -#define CLD_SQLITE_BUSY_TIMEOUT 10000
> +#define CLTRACK_SQLITE_BUSY_TIMEOUT 10000
>
> /* private data structures */
>
> @@ -111,7 +111,7 @@ sqlite_prepare_dbh(const char *topdir)
> return ret;
> }
>
> - ret = sqlite3_busy_timeout(dbh, CLD_SQLITE_BUSY_TIMEOUT);
> + ret = sqlite3_busy_timeout(dbh, CLTRACK_SQLITE_BUSY_TIMEOUT);
> if (ret != SQLITE_OK) {
> xlog(L_ERROR, "Unable to set sqlite busy timeout: %d", ret);
> sqlite3_close(dbh);
> @@ -156,7 +156,7 @@ sqlite_maindb_init(const char *topdir)
> /* insert version into table -- ignore error if it fails */
> ret = snprintf(buf, sizeof(buf),
> "INSERT OR IGNORE INTO parameters values (\"version\", "
> - "\"%d\");", CLD_SQLITE_SCHEMA_VERSION);
> + "\"%d\");", CLTRACK_SQLITE_CURRENT_SCHEMA_VERSION);
> if (ret < 0) {
> goto out_err;
> } else if ((size_t)ret >= sizeof(buf)) {
> @@ -189,10 +189,10 @@ sqlite_maindb_init(const char *topdir)
>
> /* process SELECT result */
> ret = sqlite3_column_int(stmt, 0);
> - if (ret != CLD_SQLITE_SCHEMA_VERSION) {
> + if (ret != CLTRACK_SQLITE_CURRENT_SCHEMA_VERSION) {
> xlog(L_ERROR, "Unsupported database schema version! "
> "Expected %d, got %d.",
> - CLD_SQLITE_SCHEMA_VERSION, ret);
> + CLTRACK_SQLITE_CURRENT_SCHEMA_VERSION, ret);
> ret = -EINVAL;
> goto out_err;
> }
>
next prev parent reply other threads:[~2014-09-19 13:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-15 14:00 [PATCH v4 0/7] nfs-utils: support for lifting grace period early Jeff Layton
2014-09-15 14:00 ` [PATCH v4 1/7] sm-notify: inform the kernel if there were no hosts to notify Jeff Layton
2014-09-15 14:01 ` [PATCH v4 2/7] nfsdcltrack: update comments in sqlite.c Jeff Layton
2014-09-15 14:01 ` [PATCH v4 3/7] nfsdcltrack: rename CLD_* constants with CLTRACK_* prefixes Jeff Layton
2014-09-19 13:26 ` Steve Dickson [this message]
2014-09-15 14:01 ` [PATCH v4 4/7] nfsdcltrack: overhaul database initializtion Jeff Layton
2014-09-15 14:01 ` [PATCH v4 5/7] nfsdcltrack: update schema to v2 Jeff Layton
2014-09-15 14:01 ` [PATCH v4 6/7] nfsdcltrack: grab the NFSDCLTRACK_CLIENT_HAS_SESSION env var if it's present Jeff Layton
2014-09-15 14:01 ` [PATCH v4 7/7] nfsdcltrack: fetch NFSDCLTRACK_GRACE_START out of environment Jeff Layton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=541C2F22.1030002@RedHat.com \
--to=steved@redhat.com \
--cc=bfields@fieldses.org \
--cc=jlayton@primarydata.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).