RE: merge_dir_config calls

2003-06-09 Thread Marc M. Adkins
Sorry...I intended to put this on 'modules'...which I have now done...mea
culpa

> -Original Message-
> From: Marc M. Adkins [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2003 12:21 PM
> To: [EMAIL PROTECTED]
> Subject: merge_dir_config calls



merge_dir_config calls

2003-06-09 Thread Marc M. Adkins
Apache 2.0.46, W2K, working on a module...

I'm tracing calls to the module's dir/svr create/merge calls (the ones
specified in the module data object along with a pointer to the command
array and the hook register function).  I'm not clear on when Apache should
be calling the merge functions.

If I have in httpd.conf:


  directive alpha



  directive bravo


or


  directive alpha



  directive bravo


should I be getting calls to merge the two directories in one or both of
these examples?

Currently the only dir merge call I get is from one unnamed directory to
another.  I do, however, get appropriate server and directory creation calls
and calls to command handlers for directives I have defined in these
directories.

Hopefully the following trace will clarify more than obfuscate (I trace the
directory or server hostnames on the create calls, then copy them into the
allocated config areas so I can trace them again on the merge calls):

[T] gate_register_hook
[T] gate_cfg_svr_create((null))
[T] gate_cfg_dir_create((null))
[T] gate_cfg_dir_create(/TEMP)
[T] gate_cmd_syntax(alpha)
[T] gate_cfg_dir_create(/TEMP/xfer)
[T] gate_cmd_syntax(bravo)
[T] gate_cfg_dir_create((null))
[T] gate_cfg_svr_create(GATE.Doorways.home)
[T] gate_cmd_baseDir(C:\GATE/doc/htdocs)
[T] gate_cmd_syntax(macro)
[T] gate_cfg_dir_create(/tools)
[T] gate_cmd_syntax(backrub)
[T] gate_cfg_dir_create(/tools/info)
[T] gate_cmd_syntax(mofo)
[T] gate_cfg_dir_create(/tools/info)
[T] gate_cmd_baseDir(C:\GATE/doc/htdocs)
[T] gate_cfg_dir_create(C:/TEMP/)
[T] gate_cmd_baseDir(C:\GATE/doc/htdocs)
[T] gate_cfg_dir_create(C:/TEMP/xfer/)
[T] gate_cmd_baseDir(C:\GATE/doc/htdocs)
[T] gate_cfg_svr_merge((null), GATE.Doorways.home)
[T] gate_cfg_dir_merge((null), (null))

And that's it.  Numerous directories created both inside of and outside of
virtual server blocks.  A single server merge call that looks as I expect
and a single directory merge call that leaves me perplexed.

I'm probably misunderstanding how these calls are supposed to be used...any
clarification would be helpful.

thx
mma
[T] gate_register_hook
[T] gate_cfg_svr_create(23a698, (null))
[T] gate_cfg_dir_create(23a698, (null))
[T] gate_cfg_dir_create(23a698, /TEMP)
[T] gate_cmd_syntax(alpha)
[T]   gate_cmd_acquire_engine(23a698, 77f4c8)
[T] engine:  0
[T] engine:  77f4d8
[T] gate_cfg_dir_create(23a698, /TEMP/xfer)
[T] gate_cmd_syntax(bravo)
[T]   gate_cmd_acquire_engine(23a698, 77f710)
[T] engine:  0
[T] engine:  77f720
[T] gate_cfg_dir_create(23a698, (null))
[T] gate_cfg_svr_create(23a698, GATE.Doorways.home)
[T] gate_cmd_baseDir(C:\GATE/doc/htdocs)
[T]   gate_cmd_acquire_engine(23a698, 780378)
[T] engine:  0
[T] engine:  7803a0
[T] gate_cmd_syntax(macro)
[T]   gate_cmd_acquire_engine(23a698, 780378)
[T] engine:  7803a0
[T] gate_cfg_dir_create(23a698, /tools)
[T] gate_cmd_syntax(backrub)
[T]   gate_cmd_acquire_engine(23a698, 780638)
[T] engine:  0
[T] engine:  780650
[T] gate_cfg_dir_create(23a698, /tools/info)
[T] gate_cmd_syntax(mofo)
[T]   gate_cmd_acquire_engine(23a698, 77e4e8)
[T] engine:  0
[T] engine:  77e4f8
[T] gate_cfg_dir_create(23a698, /tools/info)
[T] gate_cmd_baseDir(C:\GATE/doc/htdocs)
[T]   gate_cmd_acquire_engine(23a698, 7809e0)
[T] engine:  0
[T] engine:  780a00
[T] gate_cfg_dir_create(23a698, C:/TEMP/)
[T] gate_cmd_baseDir(C:\GATE/doc/htdocs)
[T]   gate_cmd_acquire_engine(23a698, 780c60)
[T] engine:  0
[T] engine:  780c80
[T] gate_cfg_dir_create(23a698, C:/TEMP/xfer/)
[T] gate_cmd_baseDir(C:\GATE/doc/htdocs)
[T]   gate_cmd_acquire_engine(23a698, 780ee8)
[T] engine:  0
[T] engine:  780f08
[T] gate_cfg_svr_merge(23a698, (null):0, GATE.Doorways.home:0)
[T] gate_cfg_dir_merge(23a698, (null):0, (null):7803a0)