Skip to content

Commit 46319e0

Browse files
author
brian
committed
A few uncommitted updates to reduce the debug messages. Parsing fix for Florida.
git-svn-id: svn://t2.unl.edu/brian/XrdCmsTfc@4189 1fda6f16-4416-0410-bfd6-867a04880151
1 parent e0c2038 commit 46319e0

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

configure

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.59 for xrootd-cmstfc 1.4.
3+
# Generated by GNU Autoconf 2.59 for xrootd-cmstfc 1.4.2.
44
#
55
# Report bugs to <[email protected]>.
66
#
@@ -423,8 +423,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
423423
# Identity of this package.
424424
PACKAGE_NAME='xrootd-cmstfc'
425425
PACKAGE_TARNAME='xrootd-cmstfc'
426-
PACKAGE_VERSION='1.4'
427-
PACKAGE_STRING='xrootd-cmstfc 1.4'
426+
PACKAGE_VERSION='1.4.2'
427+
PACKAGE_STRING='xrootd-cmstfc 1.4.2'
428428
PACKAGE_BUGREPORT='[email protected]'
429429

430430
ac_unique_file="src/XrdCmsTfc.hh"
@@ -954,7 +954,7 @@ if test "$ac_init_help" = "long"; then
954954
# Omit some internal or obsolete options to make the list less imposing.
955955
# This message is too long to be a string in the A/UX 3.1 sh.
956956
cat <<_ACEOF
957-
\`configure' configures xrootd-cmstfc 1.4 to adapt to many kinds of systems.
957+
\`configure' configures xrootd-cmstfc 1.4.2 to adapt to many kinds of systems.
958958

959959
Usage: $0 [OPTION]... [VAR=VALUE]...
960960

@@ -1020,7 +1020,7 @@ fi
10201020

10211021
if test -n "$ac_init_help"; then
10221022
case $ac_init_help in
1023-
short | recursive ) echo "Configuration of xrootd-cmstfc 1.4:";;
1023+
short | recursive ) echo "Configuration of xrootd-cmstfc 1.4.2:";;
10241024
esac
10251025
cat <<\_ACEOF
10261026

@@ -1161,7 +1161,7 @@ fi
11611161
test -n "$ac_init_help" && exit 0
11621162
if $ac_init_version; then
11631163
cat <<\_ACEOF
1164-
xrootd-cmstfc configure 1.4
1164+
xrootd-cmstfc configure 1.4.2
11651165
generated by GNU Autoconf 2.59
11661166

11671167
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1175,7 +1175,7 @@ cat >&5 <<_ACEOF
11751175
This file contains any messages produced by compilers while
11761176
running configure, to aid debugging if configure makes a mistake.
11771177

1178-
It was created by xrootd-cmstfc $as_me 1.4, which was
1178+
It was created by xrootd-cmstfc $as_me 1.4.2, which was
11791179
generated by GNU Autoconf 2.59. Invocation command line was
11801180

11811181
$ $0 $@
@@ -3178,7 +3178,7 @@ fi
31783178

31793179
# Define the identity of the package.
31803180
PACKAGE='xrootd-cmstfc'
3181-
VERSION='1.4'
3181+
VERSION='1.4.2'
31823182

31833183

31843184
cat >>confdefs.h <<_ACEOF
@@ -19318,7 +19318,7 @@ _ASBOX
1931819318
} >&5
1931919319
cat >&5 <<_CSEOF
1932019320

19321-
This file was extended by xrootd-cmstfc $as_me 1.4, which was
19321+
This file was extended by xrootd-cmstfc $as_me 1.4.2, which was
1932219322
generated by GNU Autoconf 2.59. Invocation command line was
1932319323

1932419324
CONFIG_FILES = $CONFIG_FILES
@@ -19376,7 +19376,7 @@ _ACEOF
1937619376

1937719377
cat >>$CONFIG_STATUS <<_ACEOF
1937819378
ac_cs_version="\\
19379-
xrootd-cmstfc config.status 1.4
19379+
xrootd-cmstfc config.status 1.4.2
1938019380
configured by $0, generated by GNU Autoconf 2.59,
1938119381
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1938219382

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
AC_PREREQ(2.57)
3-
AC_INIT(xrootd-cmstfc,1.4,[email protected])
3+
AC_INIT(xrootd-cmstfc,1.4.2,[email protected])
44
AC_CONFIG_SRCDIR([src/XrdCmsTfc.hh])
55

66
AC_PROG_CXX

spec/xrootd-cmstfc.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
Name: xrootd-cmstfc
3-
Version: 1.4
3+
Version: 1.4.2
44
Release: 1
55
Summary: CMS TFC plugin for xrootd
66

src/XrdCmsTfc.cc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,10 @@ XrdCmsTfc::TrivialFileCatalog::lfn2pfn(const char *lfn, char *buff, int blen)
311311
protocol != m_protocols.end();
312312
protocol++)
313313
{
314-
tmpLfn = applyRules(m_directRules, *protocol, m_destination, false, tmpLfn);
314+
tmpLfn = applyRules(m_directRules, *protocol, m_destination, true, tmpLfn);
315315
if (!tmpLfn.empty()) {
316316
strncpy(buff, tmpLfn.c_str(), blen);
317+
eDest->Say("Resulting PFN: ", buff);
317318
return 0;
318319
}
319320
}
@@ -353,7 +354,7 @@ std::string replaceWithRegexp (const int ovector[OVECCOUNT], const int rc,
353354
const std::string inputString,
354355
const std::string outputFormat)
355356
{
356-
std::cerr << "InputString:" << inputString << std::endl;
357+
//std::cerr << "InputString:" << inputString << std::endl;
357358

358359
char buffer[8];
359360
std::string result = outputFormat;
@@ -381,7 +382,7 @@ std::string replaceWithRegexp (const int ovector[OVECCOUNT], const int rc,
381382
pcre_free(substitutionToken);
382383
return "";
383384
}
384-
std::cerr << "Current match: " << matchResult << std::endl;
385+
//std::cerr << "Current match: " << matchResult << std::endl;
385386

386387
result = replace(result, substitutionToken, matchResult);
387388

@@ -398,7 +399,7 @@ XrdCmsTfc::TrivialFileCatalog::applyRules (const ProtocolRules& protocolRules,
398399
bool direct,
399400
std::string name) const
400401
{
401-
std::cerr << "Calling apply rules with protocol: " << protocol << "\n destination: " << destination << "\n " << " on name " << name << std::endl;
402+
//std::cerr << "Calling apply rules with protocol: " << protocol << "\n destination: " << destination << "\n " << " on name " << name << std::endl;
402403

403404
const ProtocolRules::const_iterator rulesIterator = protocolRules.find (protocol);
404405
if (rulesIterator == protocolRules.end())
@@ -417,25 +418,25 @@ XrdCmsTfc::TrivialFileCatalog::applyRules (const ProtocolRules& protocolRules,
417418
if (rc < 0) {
418419
continue;
419420
} else {
420-
std::cerr << "Destination did match; my destination " << destination << ", regexp: " << i->destinationMatchStr << std::endl;
421+
//std::cerr << "Destination did match; my destination " << destination << ", regexp: " << i->destinationMatchStr << std::endl;
421422
}
422423

423424
rc = pcre_exec(i->pathMatch, NULL, name.c_str(), name.length(), 0, 0, ovector, OVECCOUNT);
424425
if (rc < 0) {
425426
continue;
426427
} else {
427-
std::cerr << "Path did match; my path " << name << ", regexp: " << i->pathMatchStr << std::endl;
428+
//std::cerr << "Path did match; my path " << name << ", regexp: " << i->pathMatchStr << std::endl;
428429
}
429430

430-
std::cerr << "Rule matched; path: " << i->pathMatchStr << std::endl;
431+
//std::cerr << "Rule matched; path: " << i->pathMatchStr << std::endl;
431432

432433
std::string chain = i->chain;
433434
if ((direct==true) && (chain != ""))
434435
{
435436
name =
436437
applyRules (protocolRules, chain, destination, direct, name);
437438
} else {
438-
std::cerr << "Not chaining another rule." << std::endl;
439+
//std::cerr << "Not chaining another rule!" << std::endl;
439440
}
440441

441442
rc = pcre_exec(i->pathMatch, NULL, name.c_str(), name.length(), 0, 0, ovector,
@@ -444,15 +445,15 @@ XrdCmsTfc::TrivialFileCatalog::applyRules (const ProtocolRules& protocolRules,
444445
if (rc >= 0) {
445446
name = replaceWithRegexp(ovector, rc, name, i->result);
446447
} else {
447-
std::cerr << "No replacements necessary." << std::endl;
448+
//std::cerr << "No replacements necessary." << std::endl;
448449
}
449450

450451
if ((direct == false) && (chain !=""))
451452
{
452453
name =
453454
applyRules (protocolRules, chain, destination, direct, name);
454455
}
455-
std::cerr << "Result " << name << std::endl;
456+
//std::cerr << "Result " << name << std::endl;
456457
return name;
457458
}
458459
return "";

0 commit comments

Comments
 (0)